aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/serial/usb-serial.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/serial/usb-serial.c b/drivers/usb/serial/usb-serial.c
index 73172898ccb3..742a5bc44be8 100644
--- a/drivers/usb/serial/usb-serial.c
+++ b/drivers/usb/serial/usb-serial.c
@@ -1241,6 +1241,9 @@ int usb_serial_register(struct usb_serial_driver *driver)
1241 /* must be called with BKL held */ 1241 /* must be called with BKL held */
1242 int retval; 1242 int retval;
1243 1243
1244 if (usb_disabled())
1245 return -ENODEV;
1246
1244 fixup_generic(driver); 1247 fixup_generic(driver);
1245 1248
1246 if (!driver->description) 1249 if (!driver->description)