diff options
Diffstat (limited to 'drivers/usb/serial/symbolserial.c')
-rw-r--r-- | drivers/usb/serial/symbolserial.c | 30 |
1 files changed, 5 insertions, 25 deletions
diff --git a/drivers/usb/serial/symbolserial.c b/drivers/usb/serial/symbolserial.c index 1a5be136e6c..e53d2aac35c 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 */ |
@@ -64,12 +62,12 @@ static void symbol_int_callback(struct urb *urb) | |||
64 | case -ENOENT: | 62 | case -ENOENT: |
65 | case -ESHUTDOWN: | 63 | case -ESHUTDOWN: |
66 | /* this urb is terminated, clean up */ | 64 | /* this urb is terminated, clean up */ |
67 | dbg("%s - urb shutting down with status: %d", | 65 | dev_dbg(&port->dev, "%s - urb shutting down with status: %d\n", |
68 | __func__, status); | 66 | __func__, status); |
69 | return; | 67 | return; |
70 | default: | 68 | default: |
71 | dbg("%s - nonzero urb status received: %d", | 69 | dev_dbg(&port->dev, "%s - nonzero urb status received: %d\n", |
72 | __func__, status); | 70 | __func__, status); |
73 | goto exit; | 71 | goto exit; |
74 | } | 72 | } |
75 | 73 | ||
@@ -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,19 +265,10 @@ 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 | } |
284 | 271 | ||
285 | static struct usb_driver symbol_driver = { | ||
286 | .name = "symbol", | ||
287 | .probe = usb_serial_probe, | ||
288 | .disconnect = usb_serial_disconnect, | ||
289 | .id_table = id_table, | ||
290 | }; | ||
291 | |||
292 | static struct usb_serial_driver symbol_device = { | 272 | static struct usb_serial_driver symbol_device = { |
293 | .driver = { | 273 | .driver = { |
294 | .owner = THIS_MODULE, | 274 | .owner = THIS_MODULE, |
@@ -309,7 +289,7 @@ static struct usb_serial_driver * const serial_drivers[] = { | |||
309 | &symbol_device, NULL | 289 | &symbol_device, NULL |
310 | }; | 290 | }; |
311 | 291 | ||
312 | module_usb_serial_driver(symbol_driver, serial_drivers); | 292 | module_usb_serial_driver(serial_drivers, id_table); |
313 | 293 | ||
314 | MODULE_LICENSE("GPL"); | 294 | MODULE_LICENSE("GPL"); |
315 | 295 | ||