diff options
Diffstat (limited to 'drivers/usb/host/ohci-omap.c')
-rw-r--r-- | drivers/usb/host/ohci-omap.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/usb/host/ohci-omap.c b/drivers/usb/host/ohci-omap.c index 7bfca1ed1b58..6859fb5f1d6f 100644 --- a/drivers/usb/host/ohci-omap.c +++ b/drivers/usb/host/ohci-omap.c | |||
@@ -466,7 +466,6 @@ static const struct hc_driver ohci_omap_hc_driver = { | |||
466 | */ | 466 | */ |
467 | .hub_status_data = ohci_hub_status_data, | 467 | .hub_status_data = ohci_hub_status_data, |
468 | .hub_control = ohci_hub_control, | 468 | .hub_control = ohci_hub_control, |
469 | .hub_irq_enable = ohci_rhsc_enable, | ||
470 | #ifdef CONFIG_PM | 469 | #ifdef CONFIG_PM |
471 | .bus_suspend = ohci_bus_suspend, | 470 | .bus_suspend = ohci_bus_suspend, |
472 | .bus_resume = ohci_bus_resume, | 471 | .bus_resume = ohci_bus_resume, |
@@ -505,21 +504,20 @@ static int ohci_omap_suspend(struct platform_device *dev, pm_message_t message) | |||
505 | 504 | ||
506 | omap_ohci_clock_power(0); | 505 | omap_ohci_clock_power(0); |
507 | ohci_to_hcd(ohci)->state = HC_STATE_SUSPENDED; | 506 | ohci_to_hcd(ohci)->state = HC_STATE_SUSPENDED; |
508 | dev->dev.power.power_state = PMSG_SUSPEND; | ||
509 | return 0; | 507 | return 0; |
510 | } | 508 | } |
511 | 509 | ||
512 | static int ohci_omap_resume(struct platform_device *dev) | 510 | static int ohci_omap_resume(struct platform_device *dev) |
513 | { | 511 | { |
514 | struct ohci_hcd *ohci = hcd_to_ohci(platform_get_drvdata(dev)); | 512 | struct usb_hcd *hcd = platform_get_drvdata(dev); |
513 | struct ohci_hcd *ohci = hcd_to_ohci(hcd); | ||
515 | 514 | ||
516 | if (time_before(jiffies, ohci->next_statechange)) | 515 | if (time_before(jiffies, ohci->next_statechange)) |
517 | msleep(5); | 516 | msleep(5); |
518 | ohci->next_statechange = jiffies; | 517 | ohci->next_statechange = jiffies; |
519 | 518 | ||
520 | omap_ohci_clock_power(1); | 519 | omap_ohci_clock_power(1); |
521 | dev->dev.power.power_state = PMSG_ON; | 520 | ohci_finish_controller_resume(hcd); |
522 | usb_hcd_resume_root_hub(platform_get_drvdata(dev)); | ||
523 | return 0; | 521 | return 0; |
524 | } | 522 | } |
525 | 523 | ||