aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/core/usb.c
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2007-03-09 15:41:13 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2007-04-27 13:28:34 -0700
commit718efa64e30a5e9db0351d70c5a91969306a12d1 (patch)
tree1b6b5a070c177bd0347df0542f3909cffab5cda9 /drivers/usb/core/usb.c
parent64e35d92367d8cd376946eb924838de1dd3287c7 (diff)
downloadkernel_samsung_crespo-718efa64e30a5e9db0351d70c5a91969306a12d1.zip
kernel_samsung_crespo-718efa64e30a5e9db0351d70c5a91969306a12d1.tar.gz
kernel_samsung_crespo-718efa64e30a5e9db0351d70c5a91969306a12d1.tar.bz2
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.c')
-rw-r--r--drivers/usb/core/usb.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/drivers/usb/core/usb.c b/drivers/usb/core/usb.c
index 54b42ce..82338f4 100644
--- a/drivers/usb/core/usb.c
+++ b/drivers/usb/core/usb.c
@@ -211,27 +211,6 @@ static void ksuspend_usb_cleanup(void)
destroy_workqueue(ksuspend_usb_wq);
}
-#ifdef CONFIG_USB_SUSPEND
-
-/* usb_autosuspend_work - callback routine to autosuspend a USB device */
-static void usb_autosuspend_work(struct work_struct *work)
-{
- struct usb_device *udev =
- container_of(work, struct usb_device, autosuspend.work);
-
- usb_pm_lock(udev);
- udev->auto_pm = 1;
- usb_suspend_both(udev, PMSG_SUSPEND);
- usb_pm_unlock(udev);
-}
-
-#else
-
-static void usb_autosuspend_work(struct work_struct *work)
-{}
-
-#endif /* CONFIG_USB_SUSPEND */
-
#else
#define ksuspend_usb_init() 0