diff options
author | Alan Cox <alan@lxorguk.ukuu.org.uk> | 2007-10-18 01:24:22 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-10-25 12:18:42 -0700 |
commit | 337850917a690ca83605b30b29c464bb3397abdf (patch) | |
tree | 0679361038211be1991e61278ef0490c7e54d603 /drivers | |
parent | ed1f12ec50224222be9cc494cb72b4322bbacd7f (diff) | |
download | blackbird-op-linux-337850917a690ca83605b30b29c464bb3397abdf.tar.gz blackbird-op-linux-337850917a690ca83605b30b29c464bb3397abdf.zip |
usb-serial: handle NULL termios methods as "no hardware changing support"
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/serial/usb-serial.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/serial/usb-serial.c b/drivers/usb/serial/usb-serial.c index 4b1bd7def4a5..426afaa0d9b8 100644 --- a/drivers/usb/serial/usb-serial.c +++ b/drivers/usb/serial/usb-serial.c @@ -429,6 +429,8 @@ static void serial_set_termios (struct tty_struct *tty, struct ktermios * old) /* pass on to the driver specific version of this function if it is available */ if (port->serial->type->set_termios) port->serial->type->set_termios(port, old); + else + tty_termios_copy_hw(tty->termios, old); } static void serial_break (struct tty_struct *tty, int break_state) |