diff options
Diffstat (limited to 'drivers/usb/host/ohci-omap.c')
-rw-r--r-- | drivers/usb/host/ohci-omap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/usb/host/ohci-omap.c b/drivers/usb/host/ohci-omap.c index 2aafa7b6c81f..3a7c24c03671 100644 --- a/drivers/usb/host/ohci-omap.c +++ b/drivers/usb/host/ohci-omap.c | |||
@@ -510,14 +510,15 @@ static int ohci_omap_suspend(struct platform_device *dev, pm_message_t message) | |||
510 | 510 | ||
511 | static int ohci_omap_resume(struct platform_device *dev) | 511 | static int ohci_omap_resume(struct platform_device *dev) |
512 | { | 512 | { |
513 | struct ohci_hcd *ohci = hcd_to_ohci(platform_get_drvdata(dev)); | 513 | struct usb_hcd *hcd = platform_get_drvdata(dev); |
514 | struct ohci_hcd *ohci = hcd_to_ohci(hcd); | ||
514 | 515 | ||
515 | if (time_before(jiffies, ohci->next_statechange)) | 516 | if (time_before(jiffies, ohci->next_statechange)) |
516 | msleep(5); | 517 | msleep(5); |
517 | ohci->next_statechange = jiffies; | 518 | ohci->next_statechange = jiffies; |
518 | 519 | ||
519 | omap_ohci_clock_power(1); | 520 | omap_ohci_clock_power(1); |
520 | usb_hcd_resume_root_hub(platform_get_drvdata(dev)); | 521 | ohci_finish_controller_resume(hcd); |
521 | return 0; | 522 | return 0; |
522 | } | 523 | } |
523 | 524 | ||