]> err.no Git - linux-2.6/blobdiff - drivers/usb/serial/usb-serial.c
Pull thinkpad-2.6.24 into release branch
[linux-2.6] / drivers / usb / serial / usb-serial.c
index 4b1bd7def4a5a32243753431ffd526952c017368..497e29a700ca8dccb20049e0aa0abf983dcbf40c 100644 (file)
@@ -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)
@@ -1121,7 +1123,9 @@ int usb_serial_resume(struct usb_interface *intf)
 {
        struct usb_serial *serial = usb_get_intfdata(intf);
 
-       return serial->type->resume(serial);
+       if (serial->type->resume)
+               return serial->type->resume(serial);
+       return 0;
 }
 EXPORT_SYMBOL(usb_serial_resume);