diff options
author | Alexander Beregalov <a.beregalov@gmail.com> | 2008-07-28 21:54:31 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-08-13 20:32:49 -0400 |
commit | fa41019c7aa172fde075849834409d23eb49f582 (patch) | |
tree | ee924a5b05c1935128b3814bfc83e10c0571daad /drivers | |
parent | f4f4d58734916e816d4b4a7cf61b3fc22ce02683 (diff) |
usb/core/driver: fix warning
usb/core/driver: fix warning:
drivers/usb/core/driver.c:834: warning: 'do_unbind_rebind' defined but not used
Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/core/driver.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/core/driver.c b/drivers/usb/core/driver.c index ddb54e14a5c5..6618bc89eb69 100644 --- a/drivers/usb/core/driver.c +++ b/drivers/usb/core/driver.c | |||
@@ -774,6 +774,7 @@ void usb_deregister(struct usb_driver *driver) | |||
774 | } | 774 | } |
775 | EXPORT_SYMBOL_GPL(usb_deregister); | 775 | EXPORT_SYMBOL_GPL(usb_deregister); |
776 | 776 | ||
777 | #ifdef CONFIG_PM | ||
777 | 778 | ||
778 | /* Forced unbinding of a USB interface driver, either because | 779 | /* Forced unbinding of a USB interface driver, either because |
779 | * it doesn't support pre_reset/post_reset/reset_resume or | 780 | * it doesn't support pre_reset/post_reset/reset_resume or |
@@ -872,8 +873,6 @@ static void do_unbind_rebind(struct usb_device *udev, int action) | |||
872 | } | 873 | } |
873 | } | 874 | } |
874 | 875 | ||
875 | #ifdef CONFIG_PM | ||
876 | |||
877 | /* Caller has locked udev's pm_mutex */ | 876 | /* Caller has locked udev's pm_mutex */ |
878 | static int usb_suspend_device(struct usb_device *udev, pm_message_t msg) | 877 | static int usb_suspend_device(struct usb_device *udev, pm_message_t msg) |
879 | { | 878 | { |