aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/uhci-hcd.c
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2008-04-03 18:03:06 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2008-04-25 00:16:48 -0400
commit7be7d7418776a41badce7ca00246e270d408e4b9 (patch)
tree8d3de8a987f917ceb347b9e4c9e14eebbf6b8f61 /drivers/usb/host/uhci-hcd.c
parent7329e211b987a493cbcfca0e98c60eb108ab42df (diff)
USB: clarify usage of hcd->suspend/resume methods
The .suspend and .resume method pointers in struct usb_hcd have not been fully understood by host-controller driver writers. They are meant for use with PCI controllers; other platform-specific drivers generally should not refer to them. To try and clarify matters, this patch (as1065) renames those methods to .pci_suspend and .pci_resume. It eliminates corresponding dead code and bogus references in the ohci-ssb and u132-hcd drivers. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/uhci-hcd.c')
-rw-r--r--drivers/usb/host/uhci-hcd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/host/uhci-hcd.c b/drivers/usb/host/uhci-hcd.c
index ec987897b8ed..fec9872dd9dc 100644
--- a/drivers/usb/host/uhci-hcd.c
+++ b/drivers/usb/host/uhci-hcd.c
@@ -737,7 +737,7 @@ static int uhci_rh_resume(struct usb_hcd *hcd)
737 return rc; 737 return rc;
738} 738}
739 739
740static int uhci_suspend(struct usb_hcd *hcd, pm_message_t message) 740static int uhci_pci_suspend(struct usb_hcd *hcd, pm_message_t message)
741{ 741{
742 struct uhci_hcd *uhci = hcd_to_uhci(hcd); 742 struct uhci_hcd *uhci = hcd_to_uhci(hcd);
743 int rc = 0; 743 int rc = 0;
@@ -774,7 +774,7 @@ done:
774 return rc; 774 return rc;
775} 775}
776 776
777static int uhci_resume(struct usb_hcd *hcd) 777static int uhci_pci_resume(struct usb_hcd *hcd)
778{ 778{
779 struct uhci_hcd *uhci = hcd_to_uhci(hcd); 779 struct uhci_hcd *uhci = hcd_to_uhci(hcd);
780 780
@@ -872,8 +872,8 @@ static const struct hc_driver uhci_driver = {
872 .reset = uhci_init, 872 .reset = uhci_init,
873 .start = uhci_start, 873 .start = uhci_start,
874#ifdef CONFIG_PM 874#ifdef CONFIG_PM
875 .suspend = uhci_suspend, 875 .pci_suspend = uhci_pci_suspend,
876 .resume = uhci_resume, 876 .pci_resume = uhci_pci_resume,
877 .bus_suspend = uhci_rh_suspend, 877 .bus_suspend = uhci_rh_suspend,
878 .bus_resume = uhci_rh_resume, 878 .bus_resume = uhci_rh_resume,
879#endif 879#endif