aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/usb-serial.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-09-18 11:05:17 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-09-18 11:05:17 -0400
commit3033bc8d74c1a9d9104b9f231283e780e6dd8de7 (patch)
treea8a319dd600364ef66ce565415d9efce229bef7e /drivers/usb/serial/usb-serial.c
parentd3d6c328e5030da560dcbaaa9ced063d5ba93642 (diff)
USB: Serial: usb-serial: remove debug module parameter
Now that all usb-serial modules are only using dev_dbg() the debug module parameter does not do anything at all, so remove it to reduce any confusion if someone were to try to use it. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial/usb-serial.c')
-rw-r--r--drivers/usb/serial/usb-serial.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/usb/serial/usb-serial.c b/drivers/usb/serial/usb-serial.c
index 8a9352b2c26f..001185dd127c 100644
--- a/drivers/usb/serial/usb-serial.c
+++ b/drivers/usb/serial/usb-serial.c
@@ -52,7 +52,6 @@
52 drivers depend on it. 52 drivers depend on it.
53*/ 53*/
54 54
55static bool debug;
56/* initially all NULL */ 55/* initially all NULL */
57static struct usb_serial *serial_table[SERIAL_TTY_MINORS]; 56static struct usb_serial *serial_table[SERIAL_TTY_MINORS];
58static DEFINE_MUTEX(table_lock); 57static DEFINE_MUTEX(table_lock);
@@ -1074,7 +1073,7 @@ static int usb_serial_probe(struct usb_interface *interface,
1074 1073
1075 serial->disconnected = 0; 1074 serial->disconnected = 0;
1076 1075
1077 usb_serial_console_init(debug, minor); 1076 usb_serial_console_init(minor);
1078exit: 1077exit:
1079 module_put(type->driver.owner); 1078 module_put(type->driver.owner);
1080 return 0; 1079 return 0;
@@ -1259,7 +1258,7 @@ static int __init usb_serial_init(void)
1259 } 1258 }
1260 1259
1261 /* register the generic driver, if we should */ 1260 /* register the generic driver, if we should */
1262 result = usb_serial_generic_register(debug); 1261 result = usb_serial_generic_register();
1263 if (result < 0) { 1262 if (result < 0) {
1264 pr_err("%s - registering generic driver failed\n", __func__); 1263 pr_err("%s - registering generic driver failed\n", __func__);
1265 goto exit_generic; 1264 goto exit_generic;
@@ -1464,6 +1463,3 @@ EXPORT_SYMBOL_GPL(usb_serial_deregister_drivers);
1464MODULE_AUTHOR(DRIVER_AUTHOR); 1463MODULE_AUTHOR(DRIVER_AUTHOR);
1465MODULE_DESCRIPTION(DRIVER_DESC); 1464MODULE_DESCRIPTION(DRIVER_DESC);
1466MODULE_LICENSE("GPL"); 1465MODULE_LICENSE("GPL");
1467
1468module_param(debug, bool, S_IRUGO | S_IWUSR);
1469MODULE_PARM_DESC(debug, "Debug enabled or not");