aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-09-13 18:39:01 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-09-13 18:39:01 -0400
commitfee84a54e707d93282f1854a9f712534b6543a5e (patch)
tree9d7ba7bad8632e3a935d9722dade360211809f9c /drivers/usb/serial
parentc2d57aec81f3d479642523fd4d3537006168c240 (diff)
USB: serial: core: remove some trace debugging calls
These dbg() calls were no more than just a function trace, so remove them. If you want to see the functions being called, use the in-kernel function trace code instead, it's much nicer. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial')
-rw-r--r--drivers/usb/serial/console.c2
-rw-r--r--drivers/usb/serial/usb-serial.c6
2 files changed, 0 insertions, 8 deletions
diff --git a/drivers/usb/serial/console.c b/drivers/usb/serial/console.c
index b9cca6dcde07..4a9b60122a42 100644
--- a/drivers/usb/serial/console.c
+++ b/drivers/usb/serial/console.c
@@ -68,8 +68,6 @@ static int usb_console_setup(struct console *co, char *options)
68 struct tty_struct *tty = NULL; 68 struct tty_struct *tty = NULL;
69 struct ktermios dummy; 69 struct ktermios dummy;
70 70
71 dbg("%s", __func__);
72
73 if (options) { 71 if (options) {
74 baud = simple_strtoul(options, NULL, 10); 72 baud = simple_strtoul(options, NULL, 10);
75 s = options; 73 s = options;
diff --git a/drivers/usb/serial/usb-serial.c b/drivers/usb/serial/usb-serial.c
index 27483f91a4a3..5dd48f378a20 100644
--- a/drivers/usb/serial/usb-serial.c
+++ b/drivers/usb/serial/usb-serial.c
@@ -123,8 +123,6 @@ static void return_serial(struct usb_serial *serial)
123{ 123{
124 int i; 124 int i;
125 125
126 dbg("%s", __func__);
127
128 mutex_lock(&table_lock); 126 mutex_lock(&table_lock);
129 for (i = 0; i < serial->num_ports; ++i) 127 for (i = 0; i < serial->num_ports; ++i)
130 serial_table[serial->minor + i] = NULL; 128 serial_table[serial->minor + i] = NULL;
@@ -191,8 +189,6 @@ static int serial_install(struct tty_driver *driver, struct tty_struct *tty)
191 struct usb_serial_port *port; 189 struct usb_serial_port *port;
192 int retval = -ENODEV; 190 int retval = -ENODEV;
193 191
194 dbg("%s", __func__);
195
196 serial = usb_serial_get_by_index(idx); 192 serial = usb_serial_get_by_index(idx);
197 if (!serial) 193 if (!serial)
198 return retval; 194 return retval;
@@ -445,7 +441,6 @@ static int serial_proc_show(struct seq_file *m, void *v)
445 int i; 441 int i;
446 char tmp[40]; 442 char tmp[40];
447 443
448 dbg("%s", __func__);
449 seq_puts(m, "usbserinfo:1.0 driver:2.0\n"); 444 seq_puts(m, "usbserinfo:1.0 driver:2.0\n");
450 for (i = 0; i < SERIAL_TTY_MINORS; ++i) { 445 for (i = 0; i < SERIAL_TTY_MINORS; ++i) {
451 serial = usb_serial_get_by_index(i); 446 serial = usb_serial_get_by_index(i);
@@ -1100,7 +1095,6 @@ static void usb_serial_disconnect(struct usb_interface *interface)
1100 struct usb_serial_port *port; 1095 struct usb_serial_port *port;
1101 1096
1102 usb_serial_console_disconnect(serial); 1097 usb_serial_console_disconnect(serial);
1103 dbg("%s", __func__);
1104 1098
1105 mutex_lock(&serial->disc_mutex); 1099 mutex_lock(&serial->disc_mutex);
1106 /* must set a flag, to signal subdrivers */ 1100 /* must set a flag, to signal subdrivers */