mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
4a7ce90c0a
commit
d2bad7818c
|
@ -43,11 +43,8 @@ void usb_wwan_dtr_rts(struct usb_serial_port *port, int on)
|
|||
{
|
||||
struct usb_serial *serial = port->serial;
|
||||
struct usb_wwan_port_private *portdata;
|
||||
|
||||
struct usb_wwan_intf_private *intfdata;
|
||||
|
||||
dbg("%s", __func__);
|
||||
|
||||
intfdata = port->serial->private;
|
||||
|
||||
if (!intfdata->send_setup)
|
||||
|
@ -69,8 +66,6 @@ void usb_wwan_set_termios(struct tty_struct *tty,
|
|||
{
|
||||
struct usb_wwan_intf_private *intfdata = port->serial->private;
|
||||
|
||||
dbg("%s", __func__);
|
||||
|
||||
/* Doesn't support option setting */
|
||||
tty_termios_copy_hw(tty->termios, old_termios);
|
||||
|
||||
|
@ -286,8 +281,6 @@ static void usb_wwan_indat_callback(struct urb *urb)
|
|||
unsigned char *data = urb->transfer_buffer;
|
||||
int status = urb->status;
|
||||
|
||||
dbg("%s: %p", __func__, urb);
|
||||
|
||||
endpoint = usb_pipeendpoint(urb->pipe);
|
||||
port = urb->context;
|
||||
|
||||
|
@ -328,8 +321,6 @@ static void usb_wwan_outdat_callback(struct urb *urb)
|
|||
struct usb_wwan_intf_private *intfdata;
|
||||
int i;
|
||||
|
||||
dbg("%s", __func__);
|
||||
|
||||
port = urb->context;
|
||||
intfdata = port->serial->private;
|
||||
|
||||
|
@ -403,8 +394,6 @@ int usb_wwan_open(struct tty_struct *tty, struct usb_serial_port *port)
|
|||
portdata = usb_get_serial_port_data(port);
|
||||
intfdata = serial->private;
|
||||
|
||||
dbg("%s", __func__);
|
||||
|
||||
/* Start reading from the IN endpoint */
|
||||
for (i = 0; i < N_IN_URB; i++) {
|
||||
urb = portdata->in_urbs[i];
|
||||
|
@ -438,7 +427,6 @@ void usb_wwan_close(struct usb_serial_port *port)
|
|||
struct usb_wwan_port_private *portdata;
|
||||
struct usb_wwan_intf_private *intfdata = port->serial->private;
|
||||
|
||||
dbg("%s", __func__);
|
||||
portdata = usb_get_serial_port_data(port);
|
||||
|
||||
if (serial->dev) {
|
||||
|
@ -489,8 +477,6 @@ static void usb_wwan_setup_urbs(struct usb_serial *serial)
|
|||
struct usb_serial_port *port;
|
||||
struct usb_wwan_port_private *portdata;
|
||||
|
||||
dbg("%s", __func__);
|
||||
|
||||
for (i = 0; i < serial->num_ports; i++) {
|
||||
port = serial->port[i];
|
||||
portdata = usb_get_serial_port_data(port);
|
||||
|
@ -531,8 +517,6 @@ int usb_wwan_startup(struct usb_serial *serial)
|
|||
struct usb_wwan_port_private *portdata;
|
||||
u8 *buffer;
|
||||
|
||||
dbg("%s", __func__);
|
||||
|
||||
/* Now setup per port private data */
|
||||
for (i = 0; i < serial->num_ports; i++) {
|
||||
port = serial->port[i];
|
||||
|
@ -600,8 +584,6 @@ static void stop_read_write_urbs(struct usb_serial *serial)
|
|||
|
||||
void usb_wwan_disconnect(struct usb_serial *serial)
|
||||
{
|
||||
dbg("%s", __func__);
|
||||
|
||||
stop_read_write_urbs(serial);
|
||||
}
|
||||
EXPORT_SYMBOL(usb_wwan_disconnect);
|
||||
|
@ -612,8 +594,6 @@ void usb_wwan_release(struct usb_serial *serial)
|
|||
struct usb_serial_port *port;
|
||||
struct usb_wwan_port_private *portdata;
|
||||
|
||||
dbg("%s", __func__);
|
||||
|
||||
/* Now free them */
|
||||
for (i = 0; i < serial->num_ports; ++i) {
|
||||
port = serial->port[i];
|
||||
|
@ -646,8 +626,6 @@ int usb_wwan_suspend(struct usb_serial *serial, pm_message_t message)
|
|||
struct usb_wwan_intf_private *intfdata = serial->private;
|
||||
int b;
|
||||
|
||||
dbg("%s entered", __func__);
|
||||
|
||||
if (PMSG_IS_AUTO(message)) {
|
||||
spin_lock_irq(&intfdata->susp_lock);
|
||||
b = intfdata->in_flight;
|
||||
|
@ -711,7 +689,6 @@ int usb_wwan_resume(struct usb_serial *serial)
|
|||
struct urb *urb;
|
||||
int err = 0;
|
||||
|
||||
dbg("%s entered", __func__);
|
||||
/* get the interrupt URBs resubmitted unconditionally */
|
||||
for (i = 0; i < serial->num_ports; i++) {
|
||||
port = serial->port[i];
|
||||
|
|
Loading…
Reference in New Issue