diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2009-04-27 13:33:24 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-06-16 00:44:44 -0400 |
commit | abb306416a7ec2386678de0da6b632a6cb068af0 (patch) | |
tree | c61165e795cf3fc20a35d30034e196074e7e022b /drivers/usb/host | |
parent | 00240c3839d843ccf07abd52806f421f7b87bbdc (diff) |
USB: move PCI host controllers to new PM framework
This patch (as1236) converts the USB PCI power management routines
over to the new PM framework.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Acked-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r-- | drivers/usb/host/ehci-pci.c | 9 | ||||
-rw-r--r-- | drivers/usb/host/ohci-pci.c | 11 | ||||
-rw-r--r-- | drivers/usb/host/uhci-hcd.c | 9 |
3 files changed, 15 insertions, 14 deletions
diff --git a/drivers/usb/host/ehci-pci.c b/drivers/usb/host/ehci-pci.c index 5aa8bce90e1f..8172383e8908 100644 --- a/drivers/usb/host/ehci-pci.c +++ b/drivers/usb/host/ehci-pci.c | |||
@@ -429,10 +429,11 @@ static struct pci_driver ehci_pci_driver = { | |||
429 | 429 | ||
430 | .probe = usb_hcd_pci_probe, | 430 | .probe = usb_hcd_pci_probe, |
431 | .remove = usb_hcd_pci_remove, | 431 | .remove = usb_hcd_pci_remove, |
432 | .shutdown = usb_hcd_pci_shutdown, | ||
432 | 433 | ||
433 | #ifdef CONFIG_PM | 434 | #ifdef CONFIG_PM_SLEEP |
434 | .suspend = usb_hcd_pci_suspend, | 435 | .driver = { |
435 | .resume = usb_hcd_pci_resume, | 436 | .pm = &usb_hcd_pci_pm_ops |
437 | }, | ||
436 | #endif | 438 | #endif |
437 | .shutdown = usb_hcd_pci_shutdown, | ||
438 | }; | 439 | }; |
diff --git a/drivers/usb/host/ohci-pci.c b/drivers/usb/host/ohci-pci.c index f9961b4c0da3..ee0a68ca5fda 100644 --- a/drivers/usb/host/ohci-pci.c +++ b/drivers/usb/host/ohci-pci.c | |||
@@ -484,12 +484,11 @@ static struct pci_driver ohci_pci_driver = { | |||
484 | 484 | ||
485 | .probe = usb_hcd_pci_probe, | 485 | .probe = usb_hcd_pci_probe, |
486 | .remove = usb_hcd_pci_remove, | 486 | .remove = usb_hcd_pci_remove, |
487 | .shutdown = usb_hcd_pci_shutdown, | ||
487 | 488 | ||
488 | #ifdef CONFIG_PM | 489 | #ifdef CONFIG_PM_SLEEP |
489 | .suspend = usb_hcd_pci_suspend, | 490 | .driver = { |
490 | .resume = usb_hcd_pci_resume, | 491 | .pm = &usb_hcd_pci_pm_ops |
492 | }, | ||
491 | #endif | 493 | #endif |
492 | |||
493 | .shutdown = usb_hcd_pci_shutdown, | ||
494 | }; | 494 | }; |
495 | |||
diff --git a/drivers/usb/host/uhci-hcd.c b/drivers/usb/host/uhci-hcd.c index f2fd709fcce7..c0133211e3ec 100644 --- a/drivers/usb/host/uhci-hcd.c +++ b/drivers/usb/host/uhci-hcd.c | |||
@@ -940,10 +940,11 @@ static struct pci_driver uhci_pci_driver = { | |||
940 | .remove = usb_hcd_pci_remove, | 940 | .remove = usb_hcd_pci_remove, |
941 | .shutdown = uhci_shutdown, | 941 | .shutdown = uhci_shutdown, |
942 | 942 | ||
943 | #ifdef CONFIG_PM | 943 | #ifdef CONFIG_PM_SLEEP |
944 | .suspend = usb_hcd_pci_suspend, | 944 | .driver = { |
945 | .resume = usb_hcd_pci_resume, | 945 | .pm = &usb_hcd_pci_pm_ops |
946 | #endif /* PM */ | 946 | }, |
947 | #endif | ||
947 | }; | 948 | }; |
948 | 949 | ||
949 | static int __init uhci_hcd_init(void) | 950 | static int __init uhci_hcd_init(void) |