aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/usb/serial/generic.c6
-rw-r--r--drivers/usb/serial/usb-serial.c4
-rw-r--r--include/linux/usb/serial.h1
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}
501EXPORT_SYMBOL_GPL(usb_serial_generic_resume); 500EXPORT_SYMBOL_GPL(usb_serial_generic_resume);
502 501
503void usb_serial_generic_disconnect(struct usb_serial *serial)
504{
505}
506EXPORT_SYMBOL_GPL(usb_serial_generic_disconnect);
507
508void usb_serial_generic_release(struct usb_serial *serial) 502void 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);
329extern void usb_serial_generic_write_bulk_callback(struct urb *urb); 329extern void usb_serial_generic_write_bulk_callback(struct urb *urb);
330extern void usb_serial_generic_throttle(struct tty_struct *tty); 330extern void usb_serial_generic_throttle(struct tty_struct *tty);
331extern void usb_serial_generic_unthrottle(struct tty_struct *tty); 331extern void usb_serial_generic_unthrottle(struct tty_struct *tty);
332extern void usb_serial_generic_disconnect(struct usb_serial *serial);
333extern void usb_serial_generic_release(struct usb_serial *serial); 332extern void usb_serial_generic_release(struct usb_serial *serial);
334extern int usb_serial_generic_register(void); 333extern int usb_serial_generic_register(void);
335extern void usb_serial_generic_deregister(void); 334extern void usb_serial_generic_deregister(void);