USB: ssu100: remove custom close operation
authorJohan Hovold <jhovold@gmail.com>
Thu, 21 Mar 2013 11:36:40 +0000 (12:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Mar 2013 20:48:26 +0000 (13:48 -0700)
The generic close operation will be used if the close field is left
uninitialised.

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

index 97aca3fce8835fce8f2420b04ba59b8ad145d4fd..45b8c29060d16a14c455a380724224c4ca005fd6 100644 (file)
@@ -315,11 +315,6 @@ static int ssu100_open(struct tty_struct *tty, struct usb_serial_port *port)
        return usb_serial_generic_open(tty, port);
 }
 
-static void ssu100_close(struct usb_serial_port *port)
-{
-       usb_serial_generic_close(port);
-}
-
 static int get_serial_info(struct usb_serial_port *port,
                           struct serial_struct __user *retinfo)
 {
@@ -630,7 +625,6 @@ static struct usb_serial_driver ssu100_device = {
        .id_table            = id_table,
        .num_ports           = 1,
        .open                = ssu100_open,
-       .close               = ssu100_close,
        .attach              = ssu100_attach,
        .port_probe          = ssu100_port_probe,
        .port_remove         = ssu100_port_remove,