aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/core/hub.c
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2005-10-13 17:08:02 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2005-10-28 19:47:44 -0400
commit0c0382e32d46f606951010b202382be14d180a17 (patch)
tree078327baa96637ca6d70bae3c59a16b0ff46f1f1 /drivers/usb/core/hub.c
parentbb200f6eac6372839921be1fe87c1f5c292a7bd6 (diff)
[PATCH] USB: Rename hcd->hub_suspend to hcd->bus_suspend
This patch (as580) is perhaps the only result from the long discussion I had with David about his changes to the root-hub suspend/resume code. It renames the hub_suspend and hub_resume methods in struct usb_hcd to bus_suspend and bus_resume. These are more descriptive names, since the methods really do suspend or resume an entire USB bus, and less likely to be confused with the hub_suspend and hub_resume routines in hub.c. It also takes David's advice about removing the layer of bus glue, where those methods are called. And it implements a related change that David made to the other HCDs but forgot to put into dummy_hcd. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/core/hub.c')
-rw-r--r--drivers/usb/core/hub.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
index e2802bf18095..273e6ccca213 100644
--- a/drivers/usb/core/hub.c
+++ b/drivers/usb/core/hub.c
@@ -1917,8 +1917,8 @@ static int hub_suspend(struct usb_interface *intf, pm_message_t msg)
1917 /* "global suspend" of the downstream HC-to-USB interface */ 1917 /* "global suspend" of the downstream HC-to-USB interface */
1918 if (!hdev->parent) { 1918 if (!hdev->parent) {
1919 struct usb_bus *bus = hdev->bus; 1919 struct usb_bus *bus = hdev->bus;
1920 if (bus && bus->op->hub_suspend) { 1920 if (bus) {
1921 int status = bus->op->hub_suspend (bus); 1921 int status = hcd_bus_suspend (bus);
1922 1922
1923 if (status != 0) { 1923 if (status != 0) {
1924 dev_dbg(&hdev->dev, "'global' suspend %d\n", 1924 dev_dbg(&hdev->dev, "'global' suspend %d\n",
@@ -1943,8 +1943,8 @@ static int hub_resume(struct usb_interface *intf)
1943 /* "global resume" of the downstream HC-to-USB interface */ 1943 /* "global resume" of the downstream HC-to-USB interface */
1944 if (!hdev->parent) { 1944 if (!hdev->parent) {
1945 struct usb_bus *bus = hdev->bus; 1945 struct usb_bus *bus = hdev->bus;
1946 if (bus && bus->op->hub_resume) { 1946 if (bus) {
1947 status = bus->op->hub_resume (bus); 1947 status = hcd_bus_resume (bus);
1948 if (status) { 1948 if (status) {
1949 dev_dbg(&intf->dev, "'global' resume %d\n", 1949 dev_dbg(&intf->dev, "'global' resume %d\n",
1950 status); 1950 status);