Commit 4db02fec authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

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: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d2bad781
...@@ -205,8 +205,6 @@ static int whiteheat_firmware_download(struct usb_serial *serial, ...@@ -205,8 +205,6 @@ static int whiteheat_firmware_download(struct usb_serial *serial,
const struct firmware *loader_fw = NULL, *firmware_fw = NULL; const struct firmware *loader_fw = NULL, *firmware_fw = NULL;
const struct ihex_binrec *record; const struct ihex_binrec *record;
dbg("%s", __func__);
if (request_ihex_firmware(&firmware_fw, "whiteheat.fw", if (request_ihex_firmware(&firmware_fw, "whiteheat.fw",
&serial->dev->dev)) { &serial->dev->dev)) {
dev_err(&serial->dev->dev, dev_err(&serial->dev->dev,
...@@ -437,8 +435,6 @@ static void whiteheat_release(struct usb_serial *serial) ...@@ -437,8 +435,6 @@ static void whiteheat_release(struct usb_serial *serial)
struct whiteheat_private *info; struct whiteheat_private *info;
int i; int i;
dbg("%s", __func__);
/* free up our private data for our command port */ /* free up our private data for our command port */
command_port = serial->port[COMMAND_PORT]; command_port = serial->port[COMMAND_PORT];
kfree(usb_get_serial_port_data(command_port)); 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,8 +449,6 @@ static int whiteheat_open(struct tty_struct *tty, struct usb_serial_port *port)
{ {
int retval; int retval;
dbg("%s - port %d", __func__, port->number);
retval = start_command_port(port->serial); retval = start_command_port(port->serial);
if (retval) if (retval)
goto exit; goto exit;
...@@ -487,15 +481,12 @@ static int whiteheat_open(struct tty_struct *tty, struct usb_serial_port *port) ...@@ -487,15 +481,12 @@ static int whiteheat_open(struct tty_struct *tty, struct usb_serial_port *port)
goto exit; goto exit;
} }
exit: exit:
dbg("%s - exit, retval = %d", __func__, retval);
return retval; return retval;
} }
static void whiteheat_close(struct usb_serial_port *port) static void whiteheat_close(struct usb_serial_port *port)
{ {
dbg("%s - port %d", __func__, port->number);
firm_report_tx_done(port); firm_report_tx_done(port);
firm_close(port); firm_close(port);
...@@ -510,8 +501,6 @@ static int whiteheat_tiocmget(struct tty_struct *tty) ...@@ -510,8 +501,6 @@ static int whiteheat_tiocmget(struct tty_struct *tty)
struct whiteheat_private *info = usb_get_serial_port_data(port); struct whiteheat_private *info = usb_get_serial_port_data(port);
unsigned int modem_signals = 0; unsigned int modem_signals = 0;
dbg("%s - port %d", __func__, port->number);
firm_get_dtr_rts(port); firm_get_dtr_rts(port);
if (info->mcr & UART_MCR_DTR) if (info->mcr & UART_MCR_DTR)
modem_signals |= TIOCM_DTR; modem_signals |= TIOCM_DTR;
...@@ -527,8 +516,6 @@ static int whiteheat_tiocmset(struct tty_struct *tty, ...@@ -527,8 +516,6 @@ static int whiteheat_tiocmset(struct tty_struct *tty,
struct usb_serial_port *port = tty->driver_data; struct usb_serial_port *port = tty->driver_data;
struct whiteheat_private *info = usb_get_serial_port_data(port); struct whiteheat_private *info = usb_get_serial_port_data(port);
dbg("%s - port %d", __func__, port->number);
if (set & TIOCM_RTS) if (set & TIOCM_RTS)
info->mcr |= UART_MCR_RTS; info->mcr |= UART_MCR_RTS;
if (set & TIOCM_DTR) if (set & TIOCM_DTR)
...@@ -598,8 +585,6 @@ static void command_port_write_callback(struct urb *urb) ...@@ -598,8 +585,6 @@ static void command_port_write_callback(struct urb *urb)
{ {
int status = urb->status; int status = urb->status;
dbg("%s", __func__);
if (status) { if (status) {
dbg("nonzero urb status: %d", status); dbg("nonzero urb status: %d", status);
return; return;
...@@ -615,8 +600,6 @@ static void command_port_read_callback(struct urb *urb) ...@@ -615,8 +600,6 @@ static void command_port_read_callback(struct urb *urb)
unsigned char *data = urb->transfer_buffer; unsigned char *data = urb->transfer_buffer;
int result; int result;
dbg("%s", __func__);
command_info = usb_get_serial_port_data(command_port); command_info = usb_get_serial_port_data(command_port);
if (!command_info) { if (!command_info) {
dbg("%s - command_info is NULL, exiting.", __func__); dbg("%s - command_info is NULL, exiting.", __func__);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment