aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/serial_core.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/tty/serial/serial_core.c')
-rw-r--r--drivers/tty/serial/serial_core.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_core.c
index ba7863bbbb4d..675343a20f24 100644
--- a/drivers/tty/serial/serial_core.c
+++ b/drivers/tty/serial/serial_core.c
@@ -2792,10 +2792,10 @@ EXPORT_SYMBOL_GPL(uart_handle_cts_change);
2792void uart_insert_char(struct uart_port *port, unsigned int status, 2792void uart_insert_char(struct uart_port *port, unsigned int status,
2793 unsigned int overrun, unsigned int ch, unsigned int flag) 2793 unsigned int overrun, unsigned int ch, unsigned int flag)
2794{ 2794{
2795 struct tty_struct *tty = port->state->port.tty; 2795 struct tty_port *tport = &port->state->port;
2796 2796
2797 if ((status & port->ignore_status_mask & ~overrun) == 0) 2797 if ((status & port->ignore_status_mask & ~overrun) == 0)
2798 if (tty_insert_flip_char(tty, ch, flag) == 0) 2798 if (tty_insert_flip_char(tport, ch, flag) == 0)
2799 ++port->icount.buf_overrun; 2799 ++port->icount.buf_overrun;
2800 2800
2801 /* 2801 /*
@@ -2803,7 +2803,7 @@ void uart_insert_char(struct uart_port *port, unsigned int status,
2803 * it doesn't affect the current character. 2803 * it doesn't affect the current character.
2804 */ 2804 */
2805 if (status & ~port->ignore_status_mask & overrun) 2805 if (status & ~port->ignore_status_mask & overrun)
2806 if (tty_insert_flip_char(tty, 0, TTY_OVERRUN) == 0) 2806 if (tty_insert_flip_char(tport, 0, TTY_OVERRUN) == 0)
2807 ++port->icount.buf_overrun; 2807 ++port->icount.buf_overrun;
2808} 2808}
2809EXPORT_SYMBOL_GPL(uart_insert_char); 2809EXPORT_SYMBOL_GPL(uart_insert_char);