]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/serial/21285.c
Merge branch 'slub-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/christoph/vm
[mv-sheeva.git] / drivers / serial / 21285.c
index 6a1a568ca6498b932c89c5eaeed32142885ebf02..6a48dfa1efe8552fcaa8453d0800a2d58437c764 100644 (file)
@@ -214,8 +214,8 @@ static void serial21285_shutdown(struct uart_port *port)
 }
 
 static void
-serial21285_set_termios(struct uart_port *port, struct termios *termios,
-                       struct termios *old)
+serial21285_set_termios(struct uart_port *port, struct ktermios *termios,
+                       struct ktermios *old)
 {
        unsigned long flags;
        unsigned int baud, quot, h_lcr;
@@ -277,6 +277,8 @@ serial21285_set_termios(struct uart_port *port, struct termios *termios,
        if (termios->c_iflag & INPCK)
                port->read_status_mask |= RXSTAT_FRAME | RXSTAT_PARITY;
 
+       tty_encode_baud_rate(tty,  baud, baud);
+
        /*
         * Which character status flags should we ignore?
         */