diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2008-08-07 13:04:51 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-08-13 20:32:56 -0400 |
commit | 9ff78433f0aeb1f731a22a90206b685df4eaf52e (patch) | |
tree | 22c8e58ee62b5f71550bd685e7049c7cd7597b9b /drivers/usb/core/driver.c | |
parent | d28525f8866244a77b677c0470d4859cb2b6c2a8 (diff) |
USB: fix compiler warning fix
This patch (as1123b) fixes a compiler warning: do_unbind_rebind() is
defined but not used if CONFIG_PM=n.
Problem originally found and initial patch submitted by Alexander
Beregalov <a.beregalov@gmail.com>.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/core/driver.c')
-rw-r--r-- | drivers/usb/core/driver.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/core/driver.c b/drivers/usb/core/driver.c index 6618bc89eb6..2be37fe466f 100644 --- a/drivers/usb/core/driver.c +++ b/drivers/usb/core/driver.c | |||
@@ -774,8 +774,6 @@ 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 | ||
778 | |||
779 | /* Forced unbinding of a USB interface driver, either because | 777 | /* Forced unbinding of a USB interface driver, either because |
780 | * it doesn't support pre_reset/post_reset/reset_resume or | 778 | * it doesn't support pre_reset/post_reset/reset_resume or |
781 | * because it doesn't support suspend/resume. | 779 | * because it doesn't support suspend/resume. |
@@ -822,6 +820,8 @@ void usb_rebind_intf(struct usb_interface *intf) | |||
822 | dev_warn(&intf->dev, "rebind failed: %d\n", rc); | 820 | dev_warn(&intf->dev, "rebind failed: %d\n", rc); |
823 | } | 821 | } |
824 | 822 | ||
823 | #ifdef CONFIG_PM | ||
824 | |||
825 | #define DO_UNBIND 0 | 825 | #define DO_UNBIND 0 |
826 | #define DO_REBIND 1 | 826 | #define DO_REBIND 1 |
827 | 827 | ||