]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blobdiff - drivers/tty/serial/sa1100.c
TTY: switch tty_flip_buffer_push
[mirror_ubuntu-hirsute-kernel.git] / drivers / tty / serial / sa1100.c
index 5d4b9b449b4a9cd0e3b5a7f348ab4dadcb1a094e..af6b3e3ad24d18cc48c00736570c8c758403adad 100644 (file)
@@ -188,7 +188,6 @@ static void sa1100_enable_ms(struct uart_port *port)
 static void
 sa1100_rx_chars(struct sa1100_port *sport)
 {
-       struct tty_struct *tty = sport->port.state->port.tty;
        unsigned int status, ch, flg;
 
        status = UTSR1_TO_SM(UART_GET_UTSR1(sport)) |
@@ -233,7 +232,7 @@ sa1100_rx_chars(struct sa1100_port *sport)
                status = UTSR1_TO_SM(UART_GET_UTSR1(sport)) |
                         UTSR0_TO_SM(UART_GET_UTSR0(sport));
        }
-       tty_flip_buffer_push(tty);
+       tty_flip_buffer_push(&sport->port.state->port);
 }
 
 static void sa1100_tx_chars(struct sa1100_port *sport)