diff options
Diffstat (limited to 'drivers/usb/host/ohci-sm501.c')
-rw-r--r-- | drivers/usb/host/ohci-sm501.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/usb/host/ohci-sm501.c b/drivers/usb/host/ohci-sm501.c index 54b6ac2e3e4a..4a11e1816017 100644 --- a/drivers/usb/host/ohci-sm501.c +++ b/drivers/usb/host/ohci-sm501.c | |||
@@ -231,14 +231,15 @@ static int ohci_sm501_suspend(struct platform_device *pdev, pm_message_t msg) | |||
231 | static int ohci_sm501_resume(struct platform_device *pdev) | 231 | static int ohci_sm501_resume(struct platform_device *pdev) |
232 | { | 232 | { |
233 | struct device *dev = &pdev->dev; | 233 | struct device *dev = &pdev->dev; |
234 | struct ohci_hcd *ohci = hcd_to_ohci(platform_get_drvdata(pdev)); | 234 | struct usb_hcd *hcd = platform_get_drvdata(pdev); |
235 | struct ohci_hcd *ohci = hcd_to_ohci(hcd); | ||
235 | 236 | ||
236 | if (time_before(jiffies, ohci->next_statechange)) | 237 | if (time_before(jiffies, ohci->next_statechange)) |
237 | msleep(5); | 238 | msleep(5); |
238 | ohci->next_statechange = jiffies; | 239 | ohci->next_statechange = jiffies; |
239 | 240 | ||
240 | sm501_unit_power(dev->parent, SM501_GATE_USB_HOST, 1); | 241 | sm501_unit_power(dev->parent, SM501_GATE_USB_HOST, 1); |
241 | usb_hcd_resume_root_hub(platform_get_drvdata(pdev)); | 242 | ohci_finish_controller_resume(hcd); |
242 | return 0; | 243 | return 0; |
243 | } | 244 | } |
244 | #else | 245 | #else |