diff options
Diffstat (limited to 'drivers/usb/serial/usb-serial.c')
-rw-r--r-- | drivers/usb/serial/usb-serial.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |