]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/tty/serial/timbuart.c
TTY: switch tty_insert_flip_char
[karo-tx-linux.git] / drivers / tty / serial / timbuart.c
index 5be0d68fecebb36cda36adf3be7d4583d824b7f7..f40c634f7528aec059ade69354080d89f6076e37 100644 (file)
@@ -91,12 +91,12 @@ static void timbuart_flush_buffer(struct uart_port *port)
 
 static void timbuart_rx_chars(struct uart_port *port)
 {
-       struct tty_struct *tty = port->state->port.tty;
+       struct tty_port *tport = &port->state->port;
 
        while (ioread32(port->membase + TIMBUART_ISR) & RXDP) {
                u8 ch = ioread8(port->membase + TIMBUART_RXFIFO);
                port->icount.rx++;
-               tty_insert_flip_char(tty, ch, TTY_NORMAL);
+               tty_insert_flip_char(tport, ch, TTY_NORMAL);
        }
 
        spin_unlock(&port->lock);