Skip to content

Commit

Permalink
USB core: fix compiler warning about usb_autosuspend_work
Browse files Browse the repository at this point in the history
This patch (as821) fixes a compiler warning when CONFIG_PM isn't on
("usb_autosuspend_work" defined but not used).

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Alan Stern authored and Greg Kroah-Hartman committed Dec 1, 2006
1 parent 7a5c7b4 commit db06350
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions drivers/usb/core/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand All @@ -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)
Expand Down

0 comments on commit db06350

Please sign in to comment.