diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-03 19:44:55 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-03 19:44:55 -0400 |
commit | b6b6df8a568678ca086e9ed558352d762b018c6c (patch) | |
tree | 79c70241bfdb9693592ddc7686cd70033fb307cc /drivers | |
parent | bb7a9c4a42995fe84af3e9c3a99f4c35d1567437 (diff) |
USB: symbolserial.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: Johan Hovold <jhovold@gmail.com>
CC: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
CC: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/serial/symbolserial.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/usb/serial/symbolserial.c b/drivers/usb/serial/symbolserial.c index 1a5be136e6cf..04e881217fe5 100644 --- a/drivers/usb/serial/symbolserial.c +++ b/drivers/usb/serial/symbolserial.c | |||
@@ -54,8 +54,6 @@ static void symbol_int_callback(struct urb *urb) | |||
54 | int result; | 54 | int result; |
55 | int data_length; | 55 | int data_length; |
56 | 56 | ||
57 | dbg("%s - port %d", __func__, port->number); | ||
58 | |||
59 | switch (status) { | 57 | switch (status) { |
60 | case 0: | 58 | case 0: |
61 | /* success */ | 59 | /* success */ |
@@ -125,8 +123,6 @@ static int symbol_open(struct tty_struct *tty, struct usb_serial_port *port) | |||
125 | unsigned long flags; | 123 | unsigned long flags; |
126 | int result = 0; | 124 | int result = 0; |
127 | 125 | ||
128 | dbg("%s - port %d", __func__, port->number); | ||
129 | |||
130 | spin_lock_irqsave(&priv->lock, flags); | 126 | spin_lock_irqsave(&priv->lock, flags); |
131 | priv->throttled = false; | 127 | priv->throttled = false; |
132 | priv->actually_throttled = false; | 128 | priv->actually_throttled = false; |
@@ -150,8 +146,6 @@ static void symbol_close(struct usb_serial_port *port) | |||
150 | { | 146 | { |
151 | struct symbol_private *priv = usb_get_serial_data(port->serial); | 147 | struct symbol_private *priv = usb_get_serial_data(port->serial); |
152 | 148 | ||
153 | dbg("%s - port %d", __func__, port->number); | ||
154 | |||
155 | /* shutdown our urbs */ | 149 | /* shutdown our urbs */ |
156 | usb_kill_urb(priv->int_urb); | 150 | usb_kill_urb(priv->int_urb); |
157 | } | 151 | } |
@@ -161,7 +155,6 @@ static void symbol_throttle(struct tty_struct *tty) | |||
161 | struct usb_serial_port *port = tty->driver_data; | 155 | struct usb_serial_port *port = tty->driver_data; |
162 | struct symbol_private *priv = usb_get_serial_data(port->serial); | 156 | struct symbol_private *priv = usb_get_serial_data(port->serial); |
163 | 157 | ||
164 | dbg("%s - port %d", __func__, port->number); | ||
165 | spin_lock_irq(&priv->lock); | 158 | spin_lock_irq(&priv->lock); |
166 | priv->throttled = true; | 159 | priv->throttled = true; |
167 | spin_unlock_irq(&priv->lock); | 160 | spin_unlock_irq(&priv->lock); |
@@ -174,8 +167,6 @@ static void symbol_unthrottle(struct tty_struct *tty) | |||
174 | int result; | 167 | int result; |
175 | bool was_throttled; | 168 | bool was_throttled; |
176 | 169 | ||
177 | dbg("%s - port %d", __func__, port->number); | ||
178 | |||
179 | spin_lock_irq(&priv->lock); | 170 | spin_lock_irq(&priv->lock); |
180 | priv->throttled = false; | 171 | priv->throttled = false; |
181 | was_throttled = priv->actually_throttled; | 172 | was_throttled = priv->actually_throttled; |
@@ -266,8 +257,6 @@ static void symbol_disconnect(struct usb_serial *serial) | |||
266 | { | 257 | { |
267 | struct symbol_private *priv = usb_get_serial_data(serial); | 258 | struct symbol_private *priv = usb_get_serial_data(serial); |
268 | 259 | ||
269 | dbg("%s", __func__); | ||
270 | |||
271 | usb_kill_urb(priv->int_urb); | 260 | usb_kill_urb(priv->int_urb); |
272 | usb_free_urb(priv->int_urb); | 261 | usb_free_urb(priv->int_urb); |
273 | } | 262 | } |
@@ -276,8 +265,6 @@ static void symbol_release(struct usb_serial *serial) | |||
276 | { | 265 | { |
277 | struct symbol_private *priv = usb_get_serial_data(serial); | 266 | struct symbol_private *priv = usb_get_serial_data(serial); |
278 | 267 | ||
279 | dbg("%s", __func__); | ||
280 | |||
281 | kfree(priv->int_buffer); | 268 | kfree(priv->int_buffer); |
282 | kfree(priv); | 269 | kfree(priv); |
283 | } | 270 | } |