X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=drivers%2Fserial%2F21285.c;h=6a48dfa1efe8552fcaa8453d0800a2d58437c764;hb=8964ebb8c35533f4084cc667079a0ce620356104;hp=6a1a568ca6498b932c89c5eaeed32142885ebf02;hpb=513b046c96cc2fbce730a3474f6f7ff0c4fdd05c;p=powerpc.git diff --git a/drivers/serial/21285.c b/drivers/serial/21285.c index 6a1a568ca6..6a48dfa1ef 100644 --- a/drivers/serial/21285.c +++ b/drivers/serial/21285.c @@ -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? */