diff options
-rw-r--r-- | drivers/usb/serial/generic.c | 6 | ||||
-rw-r--r-- | drivers/usb/serial/usb-serial.c | 4 | ||||
-rw-r--r-- | include/linux/usb/serial.h | 1 |
3 files changed, 2 insertions, 9 deletions
diff --git a/drivers/usb/serial/generic.c b/drivers/usb/serial/generic.c index a6d0ac638e0a..4d421f3f8a7c 100644 --- a/drivers/usb/serial/generic.c +++ b/drivers/usb/serial/generic.c | |||
@@ -45,7 +45,6 @@ struct usb_serial_driver usb_serial_generic_device = { | |||
45 | }, | 45 | }, |
46 | .id_table = generic_device_ids, | 46 | .id_table = generic_device_ids, |
47 | .num_ports = 1, | 47 | .num_ports = 1, |
48 | .disconnect = usb_serial_generic_disconnect, | ||
49 | .release = usb_serial_generic_release, | 48 | .release = usb_serial_generic_release, |
50 | .throttle = usb_serial_generic_throttle, | 49 | .throttle = usb_serial_generic_throttle, |
51 | .unthrottle = usb_serial_generic_unthrottle, | 50 | .unthrottle = usb_serial_generic_unthrottle, |
@@ -500,11 +499,6 @@ int usb_serial_generic_resume(struct usb_serial *serial) | |||
500 | } | 499 | } |
501 | EXPORT_SYMBOL_GPL(usb_serial_generic_resume); | 500 | EXPORT_SYMBOL_GPL(usb_serial_generic_resume); |
502 | 501 | ||
503 | void usb_serial_generic_disconnect(struct usb_serial *serial) | ||
504 | { | ||
505 | } | ||
506 | EXPORT_SYMBOL_GPL(usb_serial_generic_disconnect); | ||
507 | |||
508 | void usb_serial_generic_release(struct usb_serial *serial) | 502 | void usb_serial_generic_release(struct usb_serial *serial) |
509 | { | 503 | { |
510 | } | 504 | } |
diff --git a/drivers/usb/serial/usb-serial.c b/drivers/usb/serial/usb-serial.c index e7f97b58e914..569b6792c218 100644 --- a/drivers/usb/serial/usb-serial.c +++ b/drivers/usb/serial/usb-serial.c | |||
@@ -1095,7 +1095,8 @@ static void usb_serial_disconnect(struct usb_interface *interface) | |||
1095 | device_del(&port->dev); | 1095 | device_del(&port->dev); |
1096 | } | 1096 | } |
1097 | } | 1097 | } |
1098 | serial->type->disconnect(serial); | 1098 | if (serial->type->disconnect) |
1099 | serial->type->disconnect(serial); | ||
1099 | 1100 | ||
1100 | /* let the last holder of this object cause it to be cleaned up */ | 1101 | /* let the last holder of this object cause it to be cleaned up */ |
1101 | usb_serial_put(serial); | 1102 | usb_serial_put(serial); |
@@ -1304,7 +1305,6 @@ static void fixup_generic(struct usb_serial_driver *device) | |||
1304 | set_to_generic_if_null(device, chars_in_buffer); | 1305 | set_to_generic_if_null(device, chars_in_buffer); |
1305 | set_to_generic_if_null(device, read_bulk_callback); | 1306 | set_to_generic_if_null(device, read_bulk_callback); |
1306 | set_to_generic_if_null(device, write_bulk_callback); | 1307 | set_to_generic_if_null(device, write_bulk_callback); |
1307 | set_to_generic_if_null(device, disconnect); | ||
1308 | set_to_generic_if_null(device, release); | 1308 | set_to_generic_if_null(device, release); |
1309 | set_to_generic_if_null(device, process_read_urb); | 1309 | set_to_generic_if_null(device, process_read_urb); |
1310 | set_to_generic_if_null(device, prepare_write_buffer); | 1310 | set_to_generic_if_null(device, prepare_write_buffer); |
diff --git a/include/linux/usb/serial.h b/include/linux/usb/serial.h index 1819b59aab2a..437dfd6787f9 100644 --- a/include/linux/usb/serial.h +++ b/include/linux/usb/serial.h | |||
@@ -329,7 +329,6 @@ extern void usb_serial_generic_read_bulk_callback(struct urb *urb); | |||
329 | extern void usb_serial_generic_write_bulk_callback(struct urb *urb); | 329 | extern void usb_serial_generic_write_bulk_callback(struct urb *urb); |
330 | extern void usb_serial_generic_throttle(struct tty_struct *tty); | 330 | extern void usb_serial_generic_throttle(struct tty_struct *tty); |
331 | extern void usb_serial_generic_unthrottle(struct tty_struct *tty); | 331 | extern void usb_serial_generic_unthrottle(struct tty_struct *tty); |
332 | extern void usb_serial_generic_disconnect(struct usb_serial *serial); | ||
333 | extern void usb_serial_generic_release(struct usb_serial *serial); | 332 | extern void usb_serial_generic_release(struct usb_serial *serial); |
334 | extern int usb_serial_generic_register(void); | 333 | extern int usb_serial_generic_register(void); |
335 | extern void usb_serial_generic_deregister(void); | 334 | extern void usb_serial_generic_deregister(void); |