Skip to content

Commit

Permalink
USB: serial: metro-usb: drop function-tracing debugging
Browse files Browse the repository at this point in the history
Drop some unnecessary debug printks.

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
  • Loading branch information
Johan Hovold committed Feb 8, 2017
1 parent d395c9a commit 168fc6c
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions drivers/usb/serial/metro-usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,6 @@ static void metrousb_read_int_callback(struct urb *urb)

static void metrousb_cleanup(struct usb_serial_port *port)
{
dev_dbg(&port->dev, "%s\n", __func__);

usb_kill_urb(port->interrupt_in_urb);

metrousb_send_unidirectional_cmd(UNI_CMD_CLOSE, port);
Expand All @@ -177,8 +175,6 @@ static int metrousb_open(struct tty_struct *tty, struct usb_serial_port *port)
unsigned long flags = 0;
int result = 0;

dev_dbg(&port->dev, "%s\n", __func__);

/* Make sure the urb is initialized. */
if (!port->interrupt_in_urb) {
dev_err(&port->dev, "%s - interrupt urb not initialized\n",
Expand Down Expand Up @@ -218,8 +214,6 @@ static int metrousb_open(struct tty_struct *tty, struct usb_serial_port *port)
__func__, result);
goto exit;
}

dev_dbg(&port->dev, "%s - port open\n", __func__);
exit:
return result;
}
Expand Down Expand Up @@ -281,8 +275,6 @@ static void metrousb_throttle(struct tty_struct *tty)
struct metrousb_private *metro_priv = usb_get_serial_port_data(port);
unsigned long flags = 0;

dev_dbg(tty->dev, "%s\n", __func__);

/* Set the private information for the port to stop reading data. */
spin_lock_irqsave(&metro_priv->lock, flags);
metro_priv->throttled = 1;
Expand All @@ -296,8 +288,6 @@ static int metrousb_tiocmget(struct tty_struct *tty)
struct metrousb_private *metro_priv = usb_get_serial_port_data(port);
unsigned long flags = 0;

dev_dbg(tty->dev, "%s\n", __func__);

spin_lock_irqsave(&metro_priv->lock, flags);
control_state = metro_priv->control_state;
spin_unlock_irqrestore(&metro_priv->lock, flags);
Expand Down Expand Up @@ -341,8 +331,6 @@ static void metrousb_unthrottle(struct tty_struct *tty)
unsigned long flags = 0;
int result = 0;

dev_dbg(tty->dev, "%s\n", __func__);

/* Set the private information for the port to resume reading data. */
spin_lock_irqsave(&metro_priv->lock, flags);
metro_priv->throttled = 0;
Expand Down

0 comments on commit 168fc6c

Please sign in to comment.