diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-12-19 18:42:20 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-12-21 19:01:00 -0500 |
commit | 3482528e9aced9234d4e2a4a9538c882a9aa5aa2 (patch) | |
tree | 18cd72ca919471c1d7db536965ea32ce329d4e77 /drivers/usb/core/hub.c | |
parent | 0c8b1992b4a180704a887b3c9128aa103b5ef60f (diff) |
USB: core: remove CONFIG_USB_DEBUG usage
CONFIG_USB_DEBUG is going away, so remove the few places in the USB core
that relied on them.
This means that we always now do the "debug" checks for every urb
submitted, which is a good idea, as who knows how many driver bugs we
have been ignoring when people forget to enable this option. Also, with
the overall speed of USB, doing these extra checks should not cause any
additional overhead.
Also, no longer announce all devices being added to the system if
CONFIG_USB_DEBUG is enabled, as it's not going to be around much longer.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/core/hub.c')
-rw-r--r-- | drivers/usb/core/hub.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index 162e94dbed53..92e052db27ac 100644 --- a/drivers/usb/core/hub.c +++ b/drivers/usb/core/hub.c | |||
@@ -33,13 +33,6 @@ | |||
33 | 33 | ||
34 | #include "hub.h" | 34 | #include "hub.h" |
35 | 35 | ||
36 | /* if we are in debug mode, always announce new devices */ | ||
37 | #ifdef DEBUG | ||
38 | #ifndef CONFIG_USB_ANNOUNCE_NEW_DEVICES | ||
39 | #define CONFIG_USB_ANNOUNCE_NEW_DEVICES | ||
40 | #endif | ||
41 | #endif | ||
42 | |||
43 | #define USB_VENDOR_GENESYS_LOGIC 0x05e3 | 36 | #define USB_VENDOR_GENESYS_LOGIC 0x05e3 |
44 | #define HUB_QUIRK_CHECK_PORT_AUTOSUSPEND 0x01 | 37 | #define HUB_QUIRK_CHECK_PORT_AUTOSUSPEND 0x01 |
45 | 38 | ||