summaryrefslogtreecommitdiff
path: root/drivers/usb/host
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@freescale.com>2011-08-26 14:38:08 +0800
committerJason Liu <r64343@freescale.com>2012-01-09 20:23:27 +0800
commitdb0e9c1f0175588e9568fd7e3aef47076f79fbc8 (patch)
treeb237f2dad27d4a100b36c2d1485511c350fb6f0a /drivers/usb/host
parentf05139aff7bddc0e188320755ab4c6be05969553 (diff)
ENGR00155396 usb-host: fix below build warning
drivers/usb/host/ehci-hub.c:109: warning: 'ehci_adjust_port_wakeup_flags' defined but not used Signed-off-by: Peter Chen <peter.chen@freescale.com>
Diffstat (limited to 'drivers/usb/host')
-rwxr-xr-xdrivers/usb/host/ehci-arc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/host/ehci-arc.c b/drivers/usb/host/ehci-arc.c
index e2db33275964..74666eeca997 100755
--- a/drivers/usb/host/ehci-arc.c
+++ b/drivers/usb/host/ehci-arc.c
@@ -623,6 +623,8 @@ static int ehci_fsl_drv_suspend(struct platform_device *pdev,
/* Only handles OTG mode switch event, system suspend event will be done in bus suspend */
if (pdata->pmflags == 0) {
printk(KERN_DEBUG "%s, pm event \n", __func__);
+ ehci_prepare_ports_for_controller_suspend(hcd_to_ehci(hcd),
+ device_may_wakeup(&(pdev->dev)));
if (!host_can_wakeup_system(pdev)) {
int mask;
/* Need open clock for register access */
@@ -732,6 +734,7 @@ static int ehci_fsl_drv_resume(struct platform_device *pdev)
fsl_usb_clk_gate(hcd->self.controller->platform_data, false);
}
}
+ ehci_prepare_ports_for_controller_resume(hcd_to_ehci(hcd));
return 0;
}
if (!test_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags)) {