diff options
Diffstat (limited to 'drivers/usb/host/ehci-platform.c')
| -rw-r--r-- | drivers/usb/host/ehci-platform.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/usb/host/ehci-platform.c b/drivers/usb/host/ehci-platform.c index dfe881a34ae2..4b1d896d5a22 100644 --- a/drivers/usb/host/ehci-platform.c +++ b/drivers/usb/host/ehci-platform.c | |||
| @@ -153,17 +153,16 @@ static int __devexit ehci_platform_remove(struct platform_device *dev) | |||
| 153 | static int ehci_platform_suspend(struct device *dev) | 153 | static int ehci_platform_suspend(struct device *dev) |
| 154 | { | 154 | { |
| 155 | struct usb_hcd *hcd = dev_get_drvdata(dev); | 155 | struct usb_hcd *hcd = dev_get_drvdata(dev); |
| 156 | bool wakeup = device_may_wakeup(dev); | 156 | bool do_wakeup = device_may_wakeup(dev); |
| 157 | 157 | ||
| 158 | ehci_prepare_ports_for_controller_suspend(hcd_to_ehci(hcd), wakeup); | 158 | return ehci_suspend(hcd, do_wakeup); |
| 159 | return 0; | ||
| 160 | } | 159 | } |
| 161 | 160 | ||
| 162 | static int ehci_platform_resume(struct device *dev) | 161 | static int ehci_platform_resume(struct device *dev) |
| 163 | { | 162 | { |
| 164 | struct usb_hcd *hcd = dev_get_drvdata(dev); | 163 | struct usb_hcd *hcd = dev_get_drvdata(dev); |
| 165 | 164 | ||
| 166 | ehci_prepare_ports_for_controller_resume(hcd_to_ehci(hcd)); | 165 | ehci_resume(hcd, false); |
| 167 | return 0; | 166 | return 0; |
| 168 | } | 167 | } |
| 169 | 168 | ||
