diff options
Diffstat (limited to 'drivers/usb/serial/symbolserial.c')
-rw-r--r-- | drivers/usb/serial/symbolserial.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/drivers/usb/serial/symbolserial.c b/drivers/usb/serial/symbolserial.c index 8b07ebc6baeb..6157fac9366b 100644 --- a/drivers/usb/serial/symbolserial.c +++ b/drivers/usb/serial/symbolserial.c | |||
@@ -267,7 +267,7 @@ error: | |||
267 | return retval; | 267 | return retval; |
268 | } | 268 | } |
269 | 269 | ||
270 | static void symbol_shutdown(struct usb_serial *serial) | 270 | static void symbol_disconnect(struct usb_serial *serial) |
271 | { | 271 | { |
272 | struct symbol_private *priv = usb_get_serial_data(serial); | 272 | struct symbol_private *priv = usb_get_serial_data(serial); |
273 | 273 | ||
@@ -275,9 +275,16 @@ static void symbol_shutdown(struct usb_serial *serial) | |||
275 | 275 | ||
276 | usb_kill_urb(priv->int_urb); | 276 | usb_kill_urb(priv->int_urb); |
277 | usb_free_urb(priv->int_urb); | 277 | usb_free_urb(priv->int_urb); |
278 | } | ||
279 | |||
280 | static void symbol_release(struct usb_serial *serial) | ||
281 | { | ||
282 | struct symbol_private *priv = usb_get_serial_data(serial); | ||
283 | |||
284 | dbg("%s", __func__); | ||
285 | |||
278 | kfree(priv->int_buffer); | 286 | kfree(priv->int_buffer); |
279 | kfree(priv); | 287 | kfree(priv); |
280 | usb_set_serial_data(serial, NULL); | ||
281 | } | 288 | } |
282 | 289 | ||
283 | static struct usb_driver symbol_driver = { | 290 | static struct usb_driver symbol_driver = { |
@@ -299,7 +306,8 @@ static struct usb_serial_driver symbol_device = { | |||
299 | .attach = symbol_startup, | 306 | .attach = symbol_startup, |
300 | .open = symbol_open, | 307 | .open = symbol_open, |
301 | .close = symbol_close, | 308 | .close = symbol_close, |
302 | .shutdown = symbol_shutdown, | 309 | .disconnect = symbol_disconnect, |
310 | .release = symbol_release, | ||
303 | .throttle = symbol_throttle, | 311 | .throttle = symbol_throttle, |
304 | .unthrottle = symbol_unthrottle, | 312 | .unthrottle = symbol_unthrottle, |
305 | }; | 313 | }; |