summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAlbert Chen <R65187@freescale.com>2009-11-25 15:15:50 +0800
committerJustin Waters <justin.waters@timesys.com>2010-03-25 14:01:16 -0400
commit902aef0f48239b98a0e4a52fb4dfa3609b1d6c29 (patch)
tree0e72cd5569836d82c9b5cbbb07eecabde02fc74c /drivers
parent49d62acb46b321d5746ca106c9d20a556b4f81bf (diff)
ENGR00109408 mx25 usb remote wakeup
Add remote wakeup feature for host mode. Signed-off-by: Albert Chen <r65187@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/host/ehci-arc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/host/ehci-arc.c b/drivers/usb/host/ehci-arc.c
index 78d6e9145328..57aa1a4fd64d 100644
--- a/drivers/usb/host/ehci-arc.c
+++ b/drivers/usb/host/ehci-arc.c
@@ -429,7 +429,6 @@ static int ehci_fsl_drv_remove(struct platform_device *pdev)
}
#ifdef CONFIG_PM
-extern void usb_host_set_wakeup(struct device *wkup_dev, bool para);
/* suspend/resume, section 4.3 */
/* These routines rely on the bus (pci, platform, etc)
@@ -514,7 +513,8 @@ static int ehci_fsl_drv_suspend(struct platform_device *pdev,
if (!((ehci->transceiver) &&
(readl(hcd->regs + 0x1A4) & (1 << 8)))) {
/* enable remote wake up irq */
- usb_host_set_wakeup(&(pdev->dev), true);
+ if (pdata->wake_up_enable)
+ pdata->wake_up_enable(pdata, true);
/* We CAN NOT enable wake up by connetion and disconnection
* concurrently */