diff options
-rw-r--r-- | drivers/tty/serial/mxs-auart.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/tty/serial/mxs-auart.c b/drivers/tty/serial/mxs-auart.c index 386b52894056..0262a6a50834 100644 --- a/drivers/tty/serial/mxs-auart.c +++ b/drivers/tty/serial/mxs-auart.c | |||
@@ -784,9 +784,10 @@ static void mxs_auart_settermios(struct uart_port *u, | |||
784 | mxs_auart_disable_ms(u); | 784 | mxs_auart_disable_ms(u); |
785 | } | 785 | } |
786 | 786 | ||
787 | static void mxs_auart_set_ldisc(struct uart_port *port, int new) | 787 | static void mxs_auart_set_ldisc(struct uart_port *port, |
788 | struct ktermios *termios) | ||
788 | { | 789 | { |
789 | if (new == N_PPS) { | 790 | if (termios->c_line == N_PPS) { |
790 | port->flags |= UPF_HARDPPS_CD; | 791 | port->flags |= UPF_HARDPPS_CD; |
791 | mxs_auart_enable_ms(port); | 792 | mxs_auart_enable_ms(port); |
792 | } else { | 793 | } else { |