diff options
Diffstat (limited to 'drivers/tty/serial/serial_core.c')
-rw-r--r-- | drivers/tty/serial/serial_core.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_core.c index 675343a20f24..b5c4e64f2990 100644 --- a/drivers/tty/serial/serial_core.c +++ b/drivers/tty/serial/serial_core.c | |||
@@ -867,9 +867,7 @@ static int uart_set_info(struct tty_struct *tty, struct tty_port *port, | |||
867 | port->closing_wait = closing_wait; | 867 | port->closing_wait = closing_wait; |
868 | if (new_info->xmit_fifo_size) | 868 | if (new_info->xmit_fifo_size) |
869 | uport->fifosize = new_info->xmit_fifo_size; | 869 | uport->fifosize = new_info->xmit_fifo_size; |
870 | if (port->tty) | 870 | port->low_latency = (uport->flags & UPF_LOW_LATENCY) ? 1 : 0; |
871 | port->tty->low_latency = | ||
872 | (uport->flags & UPF_LOW_LATENCY) ? 1 : 0; | ||
873 | 871 | ||
874 | check_and_exit: | 872 | check_and_exit: |
875 | retval = 0; | 873 | retval = 0; |
@@ -1565,7 +1563,8 @@ static int uart_open(struct tty_struct *tty, struct file *filp) | |||
1565 | */ | 1563 | */ |
1566 | tty->driver_data = state; | 1564 | tty->driver_data = state; |
1567 | state->uart_port->state = state; | 1565 | state->uart_port->state = state; |
1568 | tty->low_latency = (state->uart_port->flags & UPF_LOW_LATENCY) ? 1 : 0; | 1566 | state->port.low_latency = |
1567 | (state->uart_port->flags & UPF_LOW_LATENCY) ? 1 : 0; | ||
1569 | tty_port_tty_set(port, tty); | 1568 | tty_port_tty_set(port, tty); |
1570 | 1569 | ||
1571 | /* | 1570 | /* |