diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2006-07-01 22:07:21 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-09-27 14:58:49 -0400 |
commit | 140d8f687457c40a66af362838fac0d7893e7df5 (patch) | |
tree | 976b40f316c65f93bd1f391e5a7bd6107a4985cc /drivers/usb/core/usb.c | |
parent | 121e287cb554f3d3402c85a1950d852691b08f5c (diff) |
usbcore: rename usb_suspend_device to usb_port_suspend
This revised patch (as715b) renames usb_suspend_device to
usb_port_suspend, usb_resume_device to usb_port_resume, and
finish_device_resume to finish_port_resume. There was no objection to
the original version of the patch so this should be okay to apply.
The revision was needed only because I have re-arranged the order of the
earlier patches.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/core/usb.c')
-rw-r--r-- | drivers/usb/core/usb.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/usb/core/usb.c b/drivers/usb/core/usb.c index ab766e0fe4e..b28a31b2030 100644 --- a/drivers/usb/core/usb.c +++ b/drivers/usb/core/usb.c | |||
@@ -1014,7 +1014,7 @@ static int usb_generic_suspend(struct device *dev, pm_message_t message) | |||
1014 | status = device_for_each_child(dev, NULL, verify_suspended); | 1014 | status = device_for_each_child(dev, NULL, verify_suspended); |
1015 | if (status) | 1015 | if (status) |
1016 | return status; | 1016 | return status; |
1017 | return usb_suspend_device (to_usb_device(dev)); | 1017 | return usb_port_suspend(to_usb_device(dev)); |
1018 | } | 1018 | } |
1019 | 1019 | ||
1020 | if ((dev->driver == NULL) || | 1020 | if ((dev->driver == NULL) || |
@@ -1061,7 +1061,7 @@ static int usb_generic_resume(struct device *dev) | |||
1061 | udev = to_usb_device(dev); | 1061 | udev = to_usb_device(dev); |
1062 | if (udev->state == USB_STATE_NOTATTACHED) | 1062 | if (udev->state == USB_STATE_NOTATTACHED) |
1063 | return 0; | 1063 | return 0; |
1064 | return usb_resume_device (to_usb_device(dev)); | 1064 | return usb_port_resume(udev); |
1065 | } | 1065 | } |
1066 | 1066 | ||
1067 | if ((dev->driver == NULL) || | 1067 | if ((dev->driver == NULL) || |
@@ -1209,9 +1209,6 @@ EXPORT_SYMBOL(usb_find_interface); | |||
1209 | EXPORT_SYMBOL(usb_ifnum_to_if); | 1209 | EXPORT_SYMBOL(usb_ifnum_to_if); |
1210 | EXPORT_SYMBOL(usb_altnum_to_altsetting); | 1210 | EXPORT_SYMBOL(usb_altnum_to_altsetting); |
1211 | 1211 | ||
1212 | EXPORT_SYMBOL(usb_reset_device); | ||
1213 | EXPORT_SYMBOL(usb_reset_composite_device); | ||
1214 | |||
1215 | EXPORT_SYMBOL(__usb_get_extra_descriptor); | 1212 | EXPORT_SYMBOL(__usb_get_extra_descriptor); |
1216 | 1213 | ||
1217 | EXPORT_SYMBOL(usb_find_device); | 1214 | EXPORT_SYMBOL(usb_find_device); |