diff options
author | David Brownell <david-b@pacbell.net> | 2005-09-13 22:57:27 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-10-28 19:47:38 -0400 |
commit | 390a8c345e6415cbf811232feedac70b56c9fc8d (patch) | |
tree | 5a27e9421575c080d31884c4eedeed710d7134f1 /include/linux | |
parent | c9f89fa40cf274130b56475175a35af961d4b165 (diff) |
[PATCH] remove usb_suspend_device() parameter
This patch removes the extra usb_suspend_device() parameter. The original
reason to pass that parameter was so that this routine could suspend any
active children. A previous patch removed that functionality ... leaving
no reason to pass the parameter. A close analogy is pci_set_power_state,
which doesn't need a pm_message_t either.
On the internal code path that comes through the driver model, the parameter
is now used to distinguish cases where USB devices need to "freeze" but not
suspend. It also checks for an error case that's accessible through sysfs:
attempting to suspend a device before its interfaces (or for hubs, ports).
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/hub.c | 34 +++++++++++++++++++++-------------
drivers/usb/core/usb.c | 23 +++++++++++++++++++++--
drivers/usb/host/ehci-hcd.c | 2 +-
drivers/usb/host/isp116x-hcd.c | 2 +-
drivers/usb/host/ohci-pci.c | 2 +-
include/linux/usb.h | 2 +-
6 files changed, 46 insertions(+), 19 deletions(-)
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/usb.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/usb.h b/include/linux/usb.h index 04502e183dd1..25ec91ddcd04 100644 --- a/include/linux/usb.h +++ b/include/linux/usb.h | |||
@@ -976,7 +976,7 @@ extern int usb_bulk_msg(struct usb_device *usb_dev, unsigned int pipe, | |||
976 | int timeout); | 976 | int timeout); |
977 | 977 | ||
978 | /* selective suspend/resume */ | 978 | /* selective suspend/resume */ |
979 | extern int usb_suspend_device(struct usb_device *dev, pm_message_t message); | 979 | extern int usb_suspend_device(struct usb_device *dev); |
980 | extern int usb_resume_device(struct usb_device *dev); | 980 | extern int usb_resume_device(struct usb_device *dev); |
981 | 981 | ||
982 | 982 | ||