diff options
author | Peter Chen <peter.chen@freescale.com> | 2011-08-26 14:38:08 +0800 |
---|---|---|
committer | Peter Chen <peter.chen@freescale.com> | 2011-08-30 13:15:04 +0800 |
commit | 1455a122ba616814f543755581db35ea6b057d2b (patch) | |
tree | d9d685f129821ec9f22394bdce1230cf2340c3a3 /drivers/usb | |
parent | c703282fe7f93b67ee73c81683663f45bb82f89a (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')
-rw-r--r-- | drivers/usb/host/ehci-arc.c | 3 |
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 100644 --- 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)) { |