diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-03 19:45:01 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-03 19:45:01 -0400 |
| commit | 4db02fecb4c2f1ce67bfd3fbb014d7dcb10a115a (patch) | |
| tree | d35579c99097932bfc19938720e70a21c1bf2b08 /drivers | |
| parent | d2bad7818c53a06a67b07d94f54e1a7e9bd0c09b (diff) | |
USB: whiteheat.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: Support Department <support@connecttech.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/usb/serial/whiteheat.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/drivers/usb/serial/whiteheat.c b/drivers/usb/serial/whiteheat.c index c141b472b6a2..d07794fda006 100644 --- a/drivers/usb/serial/whiteheat.c +++ b/drivers/usb/serial/whiteheat.c | |||
| @@ -205,8 +205,6 @@ static int whiteheat_firmware_download(struct usb_serial *serial, | |||
| 205 | const struct firmware *loader_fw = NULL, *firmware_fw = NULL; | 205 | const struct firmware *loader_fw = NULL, *firmware_fw = NULL; |
| 206 | const struct ihex_binrec *record; | 206 | const struct ihex_binrec *record; |
| 207 | 207 | ||
| 208 | dbg("%s", __func__); | ||
| 209 | |||
| 210 | if (request_ihex_firmware(&firmware_fw, "whiteheat.fw", | 208 | if (request_ihex_firmware(&firmware_fw, "whiteheat.fw", |
| 211 | &serial->dev->dev)) { | 209 | &serial->dev->dev)) { |
| 212 | dev_err(&serial->dev->dev, | 210 | dev_err(&serial->dev->dev, |
| @@ -437,8 +435,6 @@ static void whiteheat_release(struct usb_serial *serial) | |||
| 437 | struct whiteheat_private *info; | 435 | struct whiteheat_private *info; |
| 438 | int i; | 436 | int i; |
| 439 | 437 | ||
| 440 | dbg("%s", __func__); | ||
| 441 | |||
| 442 | /* free up our private data for our command port */ | 438 | /* free up our private data for our command port */ |
| 443 | command_port = serial->port[COMMAND_PORT]; | 439 | command_port = serial->port[COMMAND_PORT]; |
| 444 | kfree(usb_get_serial_port_data(command_port)); | 440 | kfree(usb_get_serial_port_data(command_port)); |
| @@ -453,8 +449,6 @@ static int whiteheat_open(struct tty_struct *tty, struct usb_serial_port *port) | |||
| 453 | { | 449 | { |
| 454 | int retval; | 450 | int retval; |
| 455 | 451 | ||
| 456 | dbg("%s - port %d", __func__, port->number); | ||
| 457 | |||
| 458 | retval = start_command_port(port->serial); | 452 | retval = start_command_port(port->serial); |
| 459 | if (retval) | 453 | if (retval) |
| 460 | goto exit; | 454 | goto exit; |
| @@ -487,15 +481,12 @@ static int whiteheat_open(struct tty_struct *tty, struct usb_serial_port *port) | |||
| 487 | goto exit; | 481 | goto exit; |
| 488 | } | 482 | } |
| 489 | exit: | 483 | exit: |
| 490 | dbg("%s - exit, retval = %d", __func__, retval); | ||
| 491 | return retval; | 484 | return retval; |
| 492 | } | 485 | } |
| 493 | 486 | ||
| 494 | 487 | ||
| 495 | static void whiteheat_close(struct usb_serial_port *port) | 488 | static void whiteheat_close(struct usb_serial_port *port) |
| 496 | { | 489 | { |
| 497 | dbg("%s - port %d", __func__, port->number); | ||
| 498 | |||
| 499 | firm_report_tx_done(port); | 490 | firm_report_tx_done(port); |
| 500 | firm_close(port); | 491 | firm_close(port); |
| 501 | 492 | ||
| @@ -510,8 +501,6 @@ static int whiteheat_tiocmget(struct tty_struct *tty) | |||
| 510 | struct whiteheat_private *info = usb_get_serial_port_data(port); | 501 | struct whiteheat_private *info = usb_get_serial_port_data(port); |
| 511 | unsigned int modem_signals = 0; | 502 | unsigned int modem_signals = 0; |
| 512 | 503 | ||
| 513 | dbg("%s - port %d", __func__, port->number); | ||
| 514 | |||
| 515 | firm_get_dtr_rts(port); | 504 | firm_get_dtr_rts(port); |
| 516 | if (info->mcr & UART_MCR_DTR) | 505 | if (info->mcr & UART_MCR_DTR) |
| 517 | modem_signals |= TIOCM_DTR; | 506 | modem_signals |= TIOCM_DTR; |
| @@ -527,8 +516,6 @@ static int whiteheat_tiocmset(struct tty_struct *tty, | |||
| 527 | struct usb_serial_port *port = tty->driver_data; | 516 | struct usb_serial_port *port = tty->driver_data; |
| 528 | struct whiteheat_private *info = usb_get_serial_port_data(port); | 517 | struct whiteheat_private *info = usb_get_serial_port_data(port); |
| 529 | 518 | ||
| 530 | dbg("%s - port %d", __func__, port->number); | ||
| 531 | |||
| 532 | if (set & TIOCM_RTS) | 519 | if (set & TIOCM_RTS) |
| 533 | info->mcr |= UART_MCR_RTS; | 520 | info->mcr |= UART_MCR_RTS; |
| 534 | if (set & TIOCM_DTR) | 521 | if (set & TIOCM_DTR) |
| @@ -598,8 +585,6 @@ static void command_port_write_callback(struct urb *urb) | |||
| 598 | { | 585 | { |
| 599 | int status = urb->status; | 586 | int status = urb->status; |
| 600 | 587 | ||
| 601 | dbg("%s", __func__); | ||
| 602 | |||
| 603 | if (status) { | 588 | if (status) { |
| 604 | dbg("nonzero urb status: %d", status); | 589 | dbg("nonzero urb status: %d", status); |
| 605 | return; | 590 | return; |
| @@ -615,8 +600,6 @@ static void command_port_read_callback(struct urb *urb) | |||
| 615 | unsigned char *data = urb->transfer_buffer; | 600 | unsigned char *data = urb->transfer_buffer; |
| 616 | int result; | 601 | int result; |
| 617 | 602 | ||
| 618 | dbg("%s", __func__); | ||
| 619 | |||
| 620 | command_info = usb_get_serial_port_data(command_port); | 603 | command_info = usb_get_serial_port_data(command_port); |
| 621 | if (!command_info) { | 604 | if (!command_info) { |
| 622 | dbg("%s - command_info is NULL, exiting.", __func__); | 605 | dbg("%s - command_info is NULL, exiting.", __func__); |
