From 78385bbdcae21c56d222977d3b330f6eb55e297e Mon Sep 17 00:00:00 2001 From: Alan Stern Date: Mon, 13 Nov 2006 15:02:04 -0500 Subject: [PATCH] --- yaml --- r: 41309 b: refs/heads/master c: db063507b40664de33a61161c90358fe6fc9565a h: refs/heads/master i: 41307: 2257d6036497ceb6e9a0455ecf6345358871cf3d v: v3 --- [refs] | 2 +- trunk/drivers/usb/core/usb.c | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/[refs] b/[refs] index 0cecd79ad617..993623943d40 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 7a5c7b42d3c7b1e0085d48414ee73003d3888d1f +refs/heads/master: db063507b40664de33a61161c90358fe6fc9565a diff --git a/trunk/drivers/usb/core/usb.c b/trunk/drivers/usb/core/usb.c index a83c2d5065c1..81cb52564e68 100644 --- a/trunk/drivers/usb/core/usb.c +++ b/trunk/drivers/usb/core/usb.c @@ -200,13 +200,6 @@ static void ksuspend_usb_cleanup(void) destroy_workqueue(ksuspend_usb_wq); } -#else - -#define ksuspend_usb_init() 0 -#define ksuspend_usb_cleanup() do {} while (0) - -#endif - #ifdef CONFIG_USB_SUSPEND /* usb_autosuspend_work - callback routine to autosuspend a USB device */ @@ -225,7 +218,14 @@ static void usb_autosuspend_work(void *_udev) static void usb_autosuspend_work(void *_udev) {} -#endif +#endif /* CONFIG_USB_SUSPEND */ + +#else + +#define ksuspend_usb_init() 0 +#define ksuspend_usb_cleanup() do {} while (0) + +#endif /* CONFIG_PM */ /** * usb_alloc_dev - usb device constructor (usbcore-internal)