USB: opticon: remove disconnect
authorJohan Hovold <jhovold@gmail.com>
Sun, 18 Nov 2012 12:23:29 +0000 (13:23 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Nov 2012 21:33:55 +0000 (13:33 -0800)
Remove disconnect and its redundant read-urb kill which is already taken
care of in close.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/opticon.c

index 77700b0720c6e7b444d4d3e9ab358a515e334efc..2fb71d8c3a95b08d9a2d56a290ad49246f564fc0 100644 (file)
@@ -518,13 +518,6 @@ error:
        return retval;
 }
 
-static void opticon_disconnect(struct usb_serial *serial)
-{
-       struct opticon_private *priv = usb_get_serial_data(serial);
-
-       usb_kill_urb(priv->bulk_read_urb);
-}
-
 static void opticon_release(struct usb_serial *serial)
 {
        struct opticon_private *priv = usb_get_serial_data(serial);
@@ -570,7 +563,6 @@ static struct usb_serial_driver opticon_device = {
        .close =                opticon_close,
        .write =                opticon_write,
        .write_room =           opticon_write_room,
-       .disconnect =           opticon_disconnect,
        .release =              opticon_release,
        .throttle =             opticon_throttle,
        .unthrottle =           opticon_unthrottle,
This page took 0.027386 seconds and 5 git commands to generate.