Commit d2bad781 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

USB: usb_wwan.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: Rusty Russell <rusty@rustcorp.com.au>
CC: Alan Stern <stern@rowland.harvard.edu>
CC: Mauro Carvalho Chehab <mchehab@redhat.com>
CC: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4a7ce90c
...@@ -43,11 +43,8 @@ void usb_wwan_dtr_rts(struct usb_serial_port *port, int on) ...@@ -43,11 +43,8 @@ void usb_wwan_dtr_rts(struct usb_serial_port *port, int on)
{ {
struct usb_serial *serial = port->serial; struct usb_serial *serial = port->serial;
struct usb_wwan_port_private *portdata; struct usb_wwan_port_private *portdata;
struct usb_wwan_intf_private *intfdata; struct usb_wwan_intf_private *intfdata;
dbg("%s", __func__);
intfdata = port->serial->private; intfdata = port->serial->private;
if (!intfdata->send_setup) if (!intfdata->send_setup)
...@@ -69,8 +66,6 @@ void usb_wwan_set_termios(struct tty_struct *tty, ...@@ -69,8 +66,6 @@ void usb_wwan_set_termios(struct tty_struct *tty,
{ {
struct usb_wwan_intf_private *intfdata = port->serial->private; struct usb_wwan_intf_private *intfdata = port->serial->private;
dbg("%s", __func__);
/* Doesn't support option setting */ /* Doesn't support option setting */
tty_termios_copy_hw(tty->termios, old_termios); tty_termios_copy_hw(tty->termios, old_termios);
...@@ -286,8 +281,6 @@ static void usb_wwan_indat_callback(struct urb *urb) ...@@ -286,8 +281,6 @@ static void usb_wwan_indat_callback(struct urb *urb)
unsigned char *data = urb->transfer_buffer; unsigned char *data = urb->transfer_buffer;
int status = urb->status; int status = urb->status;
dbg("%s: %p", __func__, urb);
endpoint = usb_pipeendpoint(urb->pipe); endpoint = usb_pipeendpoint(urb->pipe);
port = urb->context; port = urb->context;
...@@ -328,8 +321,6 @@ static void usb_wwan_outdat_callback(struct urb *urb) ...@@ -328,8 +321,6 @@ static void usb_wwan_outdat_callback(struct urb *urb)
struct usb_wwan_intf_private *intfdata; struct usb_wwan_intf_private *intfdata;
int i; int i;
dbg("%s", __func__);
port = urb->context; port = urb->context;
intfdata = port->serial->private; intfdata = port->serial->private;
...@@ -403,8 +394,6 @@ int usb_wwan_open(struct tty_struct *tty, struct usb_serial_port *port) ...@@ -403,8 +394,6 @@ int usb_wwan_open(struct tty_struct *tty, struct usb_serial_port *port)
portdata = usb_get_serial_port_data(port); portdata = usb_get_serial_port_data(port);
intfdata = serial->private; intfdata = serial->private;
dbg("%s", __func__);
/* Start reading from the IN endpoint */ /* Start reading from the IN endpoint */
for (i = 0; i < N_IN_URB; i++) { for (i = 0; i < N_IN_URB; i++) {
urb = portdata->in_urbs[i]; urb = portdata->in_urbs[i];
...@@ -438,7 +427,6 @@ void usb_wwan_close(struct usb_serial_port *port) ...@@ -438,7 +427,6 @@ void usb_wwan_close(struct usb_serial_port *port)
struct usb_wwan_port_private *portdata; struct usb_wwan_port_private *portdata;
struct usb_wwan_intf_private *intfdata = port->serial->private; struct usb_wwan_intf_private *intfdata = port->serial->private;
dbg("%s", __func__);
portdata = usb_get_serial_port_data(port); portdata = usb_get_serial_port_data(port);
if (serial->dev) { if (serial->dev) {
...@@ -489,8 +477,6 @@ static void usb_wwan_setup_urbs(struct usb_serial *serial) ...@@ -489,8 +477,6 @@ static void usb_wwan_setup_urbs(struct usb_serial *serial)
struct usb_serial_port *port; struct usb_serial_port *port;
struct usb_wwan_port_private *portdata; struct usb_wwan_port_private *portdata;
dbg("%s", __func__);
for (i = 0; i < serial->num_ports; i++) { for (i = 0; i < serial->num_ports; i++) {
port = serial->port[i]; port = serial->port[i];
portdata = usb_get_serial_port_data(port); portdata = usb_get_serial_port_data(port);
...@@ -531,8 +517,6 @@ int usb_wwan_startup(struct usb_serial *serial) ...@@ -531,8 +517,6 @@ int usb_wwan_startup(struct usb_serial *serial)
struct usb_wwan_port_private *portdata; struct usb_wwan_port_private *portdata;
u8 *buffer; u8 *buffer;
dbg("%s", __func__);
/* Now setup per port private data */ /* Now setup per port private data */
for (i = 0; i < serial->num_ports; i++) { for (i = 0; i < serial->num_ports; i++) {
port = serial->port[i]; port = serial->port[i];
...@@ -600,8 +584,6 @@ static void stop_read_write_urbs(struct usb_serial *serial) ...@@ -600,8 +584,6 @@ static void stop_read_write_urbs(struct usb_serial *serial)
void usb_wwan_disconnect(struct usb_serial *serial) void usb_wwan_disconnect(struct usb_serial *serial)
{ {
dbg("%s", __func__);
stop_read_write_urbs(serial); stop_read_write_urbs(serial);
} }
EXPORT_SYMBOL(usb_wwan_disconnect); EXPORT_SYMBOL(usb_wwan_disconnect);
...@@ -612,8 +594,6 @@ void usb_wwan_release(struct usb_serial *serial) ...@@ -612,8 +594,6 @@ void usb_wwan_release(struct usb_serial *serial)
struct usb_serial_port *port; struct usb_serial_port *port;
struct usb_wwan_port_private *portdata; struct usb_wwan_port_private *portdata;
dbg("%s", __func__);
/* Now free them */ /* Now free them */
for (i = 0; i < serial->num_ports; ++i) { for (i = 0; i < serial->num_ports; ++i) {
port = serial->port[i]; port = serial->port[i];
...@@ -646,8 +626,6 @@ int usb_wwan_suspend(struct usb_serial *serial, pm_message_t message) ...@@ -646,8 +626,6 @@ int usb_wwan_suspend(struct usb_serial *serial, pm_message_t message)
struct usb_wwan_intf_private *intfdata = serial->private; struct usb_wwan_intf_private *intfdata = serial->private;
int b; int b;
dbg("%s entered", __func__);
if (PMSG_IS_AUTO(message)) { if (PMSG_IS_AUTO(message)) {
spin_lock_irq(&intfdata->susp_lock); spin_lock_irq(&intfdata->susp_lock);
b = intfdata->in_flight; b = intfdata->in_flight;
...@@ -711,7 +689,6 @@ int usb_wwan_resume(struct usb_serial *serial) ...@@ -711,7 +689,6 @@ int usb_wwan_resume(struct usb_serial *serial)
struct urb *urb; struct urb *urb;
int err = 0; int err = 0;
dbg("%s entered", __func__);
/* get the interrupt URBs resubmitted unconditionally */ /* get the interrupt URBs resubmitted unconditionally */
for (i = 0; i < serial->num_ports; i++) { for (i = 0; i < serial->num_ports; i++) {
port = serial->port[i]; port = serial->port[i];
......
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