diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-03 19:43:57 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-03 19:43:57 -0400 |
commit | b978a5a11b6e1b65cebe2bb8aaff8abe2e29fca7 (patch) | |
tree | 6b5e7ec2066c9522dfeb4b709e25ae36dd2eee5d /drivers/usb/serial/cp210x.c | |
parent | 2ec7d459c0b557d7f09d57261052601710479054 (diff) |
USB: cp210x.c: remove dbg() tracing calls
dbg() was used a lot a long time ago to trace code flow. Now that we have
ftrace, this isn't needed at all, so remove these calls.
CC: Johan Hovold <jhovold@gmail.com>
CC: Preston Fick <preston.fick@silabs.com>
CC: Yuri Matylitski <ym@tekinsoft.com>
CC: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial/cp210x.c')
-rw-r--r-- | drivers/usb/serial/cp210x.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/usb/serial/cp210x.c b/drivers/usb/serial/cp210x.c index e67ccf3b18d9..81468c0f5e61 100644 --- a/drivers/usb/serial/cp210x.c +++ b/drivers/usb/serial/cp210x.c | |||
@@ -424,8 +424,6 @@ static int cp210x_open(struct tty_struct *tty, struct usb_serial_port *port) | |||
424 | { | 424 | { |
425 | int result; | 425 | int result; |
426 | 426 | ||
427 | dbg("%s - port %d", __func__, port->number); | ||
428 | |||
429 | result = cp210x_set_config_single(port, CP210X_IFC_ENABLE, | 427 | result = cp210x_set_config_single(port, CP210X_IFC_ENABLE, |
430 | UART_ENABLE); | 428 | UART_ENABLE); |
431 | if (result) { | 429 | if (result) { |
@@ -445,8 +443,6 @@ static int cp210x_open(struct tty_struct *tty, struct usb_serial_port *port) | |||
445 | 443 | ||
446 | static void cp210x_close(struct usb_serial_port *port) | 444 | static void cp210x_close(struct usb_serial_port *port) |
447 | { | 445 | { |
448 | dbg("%s - port %d", __func__, port->number); | ||
449 | |||
450 | usb_serial_generic_close(port); | 446 | usb_serial_generic_close(port); |
451 | 447 | ||
452 | mutex_lock(&port->serial->disc_mutex); | 448 | mutex_lock(&port->serial->disc_mutex); |
@@ -490,8 +486,6 @@ static void cp210x_get_termios_port(struct usb_serial_port *port, | |||
490 | unsigned int baud; | 486 | unsigned int baud; |
491 | unsigned int bits; | 487 | unsigned int bits; |
492 | 488 | ||
493 | dbg("%s - port %d", __func__, port->number); | ||
494 | |||
495 | cp210x_get_config(port, CP210X_GET_BAUDRATE, &baud, 4); | 489 | cp210x_get_config(port, CP210X_GET_BAUDRATE, &baud, 4); |
496 | 490 | ||
497 | dbg("%s - baud rate = %d", __func__, baud); | 491 | dbg("%s - baud rate = %d", __func__, baud); |
@@ -789,8 +783,6 @@ static int cp210x_tiocmset_port(struct usb_serial_port *port, | |||
789 | { | 783 | { |
790 | unsigned int control = 0; | 784 | unsigned int control = 0; |
791 | 785 | ||
792 | dbg("%s - port %d", __func__, port->number); | ||
793 | |||
794 | if (set & TIOCM_RTS) { | 786 | if (set & TIOCM_RTS) { |
795 | control |= CONTROL_RTS; | 787 | control |= CONTROL_RTS; |
796 | control |= CONTROL_WRITE_RTS; | 788 | control |= CONTROL_WRITE_RTS; |
@@ -827,8 +819,6 @@ static int cp210x_tiocmget (struct tty_struct *tty) | |||
827 | unsigned int control; | 819 | unsigned int control; |
828 | int result; | 820 | int result; |
829 | 821 | ||
830 | dbg("%s - port %d", __func__, port->number); | ||
831 | |||
832 | cp210x_get_config(port, CP210X_GET_MDMSTS, &control, 1); | 822 | cp210x_get_config(port, CP210X_GET_MDMSTS, &control, 1); |
833 | 823 | ||
834 | result = ((control & CONTROL_DTR) ? TIOCM_DTR : 0) | 824 | result = ((control & CONTROL_DTR) ? TIOCM_DTR : 0) |
@@ -848,7 +838,6 @@ static void cp210x_break_ctl (struct tty_struct *tty, int break_state) | |||
848 | struct usb_serial_port *port = tty->driver_data; | 838 | struct usb_serial_port *port = tty->driver_data; |
849 | unsigned int state; | 839 | unsigned int state; |
850 | 840 | ||
851 | dbg("%s - port %d", __func__, port->number); | ||
852 | if (break_state == 0) | 841 | if (break_state == 0) |
853 | state = BREAK_OFF; | 842 | state = BREAK_OFF; |
854 | else | 843 | else |