diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-03 19:45:00 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-03 19:45:00 -0400 |
| commit | d2bad7818c53a06a67b07d94f54e1a7e9bd0c09b (patch) | |
| tree | 03cb38c51dbf5f938b713c9e3f8a1b05dfc3fb9a /drivers | |
| parent | 4a7ce90c0a8160af6480836636ad7eb67c8e07dc (diff) | |
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/usb/serial/usb_wwan.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/drivers/usb/serial/usb_wwan.c b/drivers/usb/serial/usb_wwan.c index 31ba9894b6a6..f35971dff4a5 100644 --- a/drivers/usb/serial/usb_wwan.c +++ b/drivers/usb/serial/usb_wwan.c | |||
| @@ -43,11 +43,8 @@ void usb_wwan_dtr_rts(struct usb_serial_port *port, int on) | |||
| 43 | { | 43 | { |
| 44 | struct usb_serial *serial = port->serial; | 44 | struct usb_serial *serial = port->serial; |
| 45 | struct usb_wwan_port_private *portdata; | 45 | struct usb_wwan_port_private *portdata; |
| 46 | |||
| 47 | struct usb_wwan_intf_private *intfdata; | 46 | struct usb_wwan_intf_private *intfdata; |
| 48 | 47 | ||
| 49 | dbg("%s", __func__); | ||
| 50 | |||
| 51 | intfdata = port->serial->private; | 48 | intfdata = port->serial->private; |
| 52 | 49 | ||
| 53 | if (!intfdata->send_setup) | 50 | if (!intfdata->send_setup) |
| @@ -69,8 +66,6 @@ void usb_wwan_set_termios(struct tty_struct *tty, | |||
| 69 | { | 66 | { |
| 70 | struct usb_wwan_intf_private *intfdata = port->serial->private; | 67 | struct usb_wwan_intf_private *intfdata = port->serial->private; |
| 71 | 68 | ||
| 72 | dbg("%s", __func__); | ||
| 73 | |||
| 74 | /* Doesn't support option setting */ | 69 | /* Doesn't support option setting */ |
| 75 | tty_termios_copy_hw(tty->termios, old_termios); | 70 | tty_termios_copy_hw(tty->termios, old_termios); |
| 76 | 71 | ||
| @@ -286,8 +281,6 @@ static void usb_wwan_indat_callback(struct urb *urb) | |||
| 286 | unsigned char *data = urb->transfer_buffer; | 281 | unsigned char *data = urb->transfer_buffer; |
| 287 | int status = urb->status; | 282 | int status = urb->status; |
| 288 | 283 | ||
| 289 | dbg("%s: %p", __func__, urb); | ||
| 290 | |||
| 291 | endpoint = usb_pipeendpoint(urb->pipe); | 284 | endpoint = usb_pipeendpoint(urb->pipe); |
| 292 | port = urb->context; | 285 | port = urb->context; |
| 293 | 286 | ||
| @@ -328,8 +321,6 @@ static void usb_wwan_outdat_callback(struct urb *urb) | |||
| 328 | struct usb_wwan_intf_private *intfdata; | 321 | struct usb_wwan_intf_private *intfdata; |
| 329 | int i; | 322 | int i; |
| 330 | 323 | ||
| 331 | dbg("%s", __func__); | ||
| 332 | |||
| 333 | port = urb->context; | 324 | port = urb->context; |
| 334 | intfdata = port->serial->private; | 325 | intfdata = port->serial->private; |
| 335 | 326 | ||
| @@ -403,8 +394,6 @@ int usb_wwan_open(struct tty_struct *tty, struct usb_serial_port *port) | |||
| 403 | portdata = usb_get_serial_port_data(port); | 394 | portdata = usb_get_serial_port_data(port); |
| 404 | intfdata = serial->private; | 395 | intfdata = serial->private; |
| 405 | 396 | ||
| 406 | dbg("%s", __func__); | ||
| 407 | |||
| 408 | /* Start reading from the IN endpoint */ | 397 | /* Start reading from the IN endpoint */ |
| 409 | for (i = 0; i < N_IN_URB; i++) { | 398 | for (i = 0; i < N_IN_URB; i++) { |
| 410 | urb = portdata->in_urbs[i]; | 399 | urb = portdata->in_urbs[i]; |
| @@ -438,7 +427,6 @@ void usb_wwan_close(struct usb_serial_port *port) | |||
| 438 | struct usb_wwan_port_private *portdata; | 427 | struct usb_wwan_port_private *portdata; |
| 439 | struct usb_wwan_intf_private *intfdata = port->serial->private; | 428 | struct usb_wwan_intf_private *intfdata = port->serial->private; |
| 440 | 429 | ||
| 441 | dbg("%s", __func__); | ||
| 442 | portdata = usb_get_serial_port_data(port); | 430 | portdata = usb_get_serial_port_data(port); |
| 443 | 431 | ||
| 444 | if (serial->dev) { | 432 | if (serial->dev) { |
| @@ -489,8 +477,6 @@ static void usb_wwan_setup_urbs(struct usb_serial *serial) | |||
| 489 | struct usb_serial_port *port; | 477 | struct usb_serial_port *port; |
| 490 | struct usb_wwan_port_private *portdata; | 478 | struct usb_wwan_port_private *portdata; |
| 491 | 479 | ||
| 492 | dbg("%s", __func__); | ||
| 493 | |||
| 494 | for (i = 0; i < serial->num_ports; i++) { | 480 | for (i = 0; i < serial->num_ports; i++) { |
| 495 | port = serial->port[i]; | 481 | port = serial->port[i]; |
| 496 | portdata = usb_get_serial_port_data(port); | 482 | portdata = usb_get_serial_port_data(port); |
| @@ -531,8 +517,6 @@ int usb_wwan_startup(struct usb_serial *serial) | |||
| 531 | struct usb_wwan_port_private *portdata; | 517 | struct usb_wwan_port_private *portdata; |
| 532 | u8 *buffer; | 518 | u8 *buffer; |
| 533 | 519 | ||
| 534 | dbg("%s", __func__); | ||
| 535 | |||
| 536 | /* Now setup per port private data */ | 520 | /* Now setup per port private data */ |
| 537 | for (i = 0; i < serial->num_ports; i++) { | 521 | for (i = 0; i < serial->num_ports; i++) { |
| 538 | port = serial->port[i]; | 522 | port = serial->port[i]; |
| @@ -600,8 +584,6 @@ static void stop_read_write_urbs(struct usb_serial *serial) | |||
| 600 | 584 | ||
| 601 | void usb_wwan_disconnect(struct usb_serial *serial) | 585 | void usb_wwan_disconnect(struct usb_serial *serial) |
| 602 | { | 586 | { |
| 603 | dbg("%s", __func__); | ||
| 604 | |||
| 605 | stop_read_write_urbs(serial); | 587 | stop_read_write_urbs(serial); |
| 606 | } | 588 | } |
| 607 | EXPORT_SYMBOL(usb_wwan_disconnect); | 589 | EXPORT_SYMBOL(usb_wwan_disconnect); |
| @@ -612,8 +594,6 @@ void usb_wwan_release(struct usb_serial *serial) | |||
| 612 | struct usb_serial_port *port; | 594 | struct usb_serial_port *port; |
| 613 | struct usb_wwan_port_private *portdata; | 595 | struct usb_wwan_port_private *portdata; |
| 614 | 596 | ||
| 615 | dbg("%s", __func__); | ||
| 616 | |||
| 617 | /* Now free them */ | 597 | /* Now free them */ |
| 618 | for (i = 0; i < serial->num_ports; ++i) { | 598 | for (i = 0; i < serial->num_ports; ++i) { |
| 619 | port = serial->port[i]; | 599 | port = serial->port[i]; |
| @@ -646,8 +626,6 @@ int usb_wwan_suspend(struct usb_serial *serial, pm_message_t message) | |||
| 646 | struct usb_wwan_intf_private *intfdata = serial->private; | 626 | struct usb_wwan_intf_private *intfdata = serial->private; |
| 647 | int b; | 627 | int b; |
| 648 | 628 | ||
| 649 | dbg("%s entered", __func__); | ||
| 650 | |||
| 651 | if (PMSG_IS_AUTO(message)) { | 629 | if (PMSG_IS_AUTO(message)) { |
| 652 | spin_lock_irq(&intfdata->susp_lock); | 630 | spin_lock_irq(&intfdata->susp_lock); |
| 653 | b = intfdata->in_flight; | 631 | b = intfdata->in_flight; |
| @@ -711,7 +689,6 @@ int usb_wwan_resume(struct usb_serial *serial) | |||
| 711 | struct urb *urb; | 689 | struct urb *urb; |
| 712 | int err = 0; | 690 | int err = 0; |
| 713 | 691 | ||
| 714 | dbg("%s entered", __func__); | ||
| 715 | /* get the interrupt URBs resubmitted unconditionally */ | 692 | /* get the interrupt URBs resubmitted unconditionally */ |
| 716 | for (i = 0; i < serial->num_ports; i++) { | 693 | for (i = 0; i < serial->num_ports; i++) { |
| 717 | port = serial->port[i]; | 694 | port = serial->port[i]; |
