Commit 9ff78433 authored by Alan Stern's avatar Alan Stern Committed by Greg Kroah-Hartman

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: default avatarAlan Stern <stern@rowland.harvard.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent d28525f8
...@@ -774,8 +774,6 @@ void usb_deregister(struct usb_driver *driver) ...@@ -774,8 +774,6 @@ void usb_deregister(struct usb_driver *driver)
} }
EXPORT_SYMBOL_GPL(usb_deregister); EXPORT_SYMBOL_GPL(usb_deregister);
#ifdef CONFIG_PM
/* Forced unbinding of a USB interface driver, either because /* Forced unbinding of a USB interface driver, either because
* it doesn't support pre_reset/post_reset/reset_resume or * it doesn't support pre_reset/post_reset/reset_resume or
* because it doesn't support suspend/resume. * because it doesn't support suspend/resume.
...@@ -822,6 +820,8 @@ void usb_rebind_intf(struct usb_interface *intf) ...@@ -822,6 +820,8 @@ void usb_rebind_intf(struct usb_interface *intf)
dev_warn(&intf->dev, "rebind failed: %d\n", rc); dev_warn(&intf->dev, "rebind failed: %d\n", rc);
} }
#ifdef CONFIG_PM
#define DO_UNBIND 0 #define DO_UNBIND 0
#define DO_REBIND 1 #define DO_REBIND 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment