USB: sierra: remove unimplemented set_termios
authorJohan Hovold <jhovold@gmail.com>
Mon, 26 May 2014 17:23:01 +0000 (19:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 May 2014 22:04:04 +0000 (15:04 -0700)
The driver does not implement set_termios so the operation can be left
unset (tty will do the tty_termios_copy_hw for us).

Note that the send_setup call is bogus as it really only sets DTR/RTS
to their current values.

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

index fa0b78ad42d7f6d7bc7e8480786d9380a3dc11be..854ac61581ba854f8225980ec77d178886f96ff6 100644 (file)
@@ -372,13 +372,6 @@ static int sierra_send_setup(struct usb_serial_port *port)
        return retval;
 }
 
-static void sierra_set_termios(struct tty_struct *tty,
-               struct usb_serial_port *port, struct ktermios *old_termios)
-{
-       tty_termios_copy_hw(&tty->termios, old_termios);
-       sierra_send_setup(port);
-}
-
 static int sierra_tiocmget(struct tty_struct *tty)
 {
        struct usb_serial_port *port = tty->driver_data;
@@ -1079,7 +1072,6 @@ static struct usb_serial_driver sierra_device = {
        .write             = sierra_write,
        .write_room        = sierra_write_room,
        .chars_in_buffer   = sierra_chars_in_buffer,
-       .set_termios       = sierra_set_termios,
        .tiocmget          = sierra_tiocmget,
        .tiocmset          = sierra_tiocmset,
        .attach            = sierra_startup,