diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2007-03-09 15:41:13 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-04-27 13:28:34 -0700 |
commit | 718efa64e30a5e9db0351d70c5a91969306a12d1 (patch) | |
tree | 1b6b5a070c177bd0347df0542f3909cffab5cda9 /drivers/usb/core/usb.h | |
parent | 64e35d92367d8cd376946eb924838de1dd3287c7 (diff) | |
download | linux-stable-718efa64e30a5e9db0351d70c5a91969306a12d1.tar.gz linux-stable-718efa64e30a5e9db0351d70c5a91969306a12d1.tar.bz2 linux-stable-718efa64e30a5e9db0351d70c5a91969306a12d1.zip |
usbcore: move usb_autosuspend_work
This patch (as864) moves the work routine for USB autosuspend from one
source file to another. This permits the removal of one whole global
symbol (!) and should smooth the way for more changes in the future.
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.h')
-rw-r--r-- | drivers/usb/core/usb.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/usb/core/usb.h b/drivers/usb/core/usb.h index 08b5a04e3755..b98bc0d381c0 100644 --- a/drivers/usb/core/usb.h +++ b/drivers/usb/core/usb.h @@ -34,8 +34,7 @@ extern void usb_host_cleanup(void); #ifdef CONFIG_PM -extern int usb_suspend_both(struct usb_device *udev, pm_message_t msg); -extern int usb_resume_both(struct usb_device *udev); +extern void usb_autosuspend_work(struct work_struct *work); extern int usb_port_suspend(struct usb_device *dev); extern int usb_port_resume(struct usb_device *dev); @@ -51,11 +50,6 @@ static inline void usb_pm_unlock(struct usb_device *udev) #else -#define usb_suspend_both(udev, msg) 0 -static inline int usb_resume_both(struct usb_device *udev) -{ - return 0; -} #define usb_port_suspend(dev) 0 #define usb_port_resume(dev) 0 static inline void usb_pm_lock(struct usb_device *udev) {} |