diff options
Diffstat (limited to 'drivers/tty/serial/max3100.c')
-rw-r--r-- | drivers/tty/serial/max3100.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/tty/serial/max3100.c b/drivers/tty/serial/max3100.c index 7ce3197087bb..791e1dfb8b11 100644 --- a/drivers/tty/serial/max3100.c +++ b/drivers/tty/serial/max3100.c | |||
@@ -311,8 +311,8 @@ static void max3100_work(struct work_struct *w) | |||
311 | } | 311 | } |
312 | } | 312 | } |
313 | 313 | ||
314 | if (rxchars > 16 && s->port.state->port.tty != NULL) { | 314 | if (rxchars > 16) { |
315 | tty_flip_buffer_push(s->port.state->port.tty); | 315 | tty_flip_buffer_push(&s->port.state->port); |
316 | rxchars = 0; | 316 | rxchars = 0; |
317 | } | 317 | } |
318 | if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) | 318 | if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) |
@@ -324,8 +324,8 @@ static void max3100_work(struct work_struct *w) | |||
324 | (!uart_circ_empty(xmit) && | 324 | (!uart_circ_empty(xmit) && |
325 | !uart_tx_stopped(&s->port)))); | 325 | !uart_tx_stopped(&s->port)))); |
326 | 326 | ||
327 | if (rxchars > 0 && s->port.state->port.tty != NULL) | 327 | if (rxchars > 0) |
328 | tty_flip_buffer_push(s->port.state->port.tty); | 328 | tty_flip_buffer_push(&s->port.state->port); |
329 | } | 329 | } |
330 | 330 | ||
331 | static irqreturn_t max3100_irq(int irqno, void *dev_id) | 331 | static irqreturn_t max3100_irq(int irqno, void *dev_id) |
@@ -530,7 +530,7 @@ max3100_set_termios(struct uart_port *port, struct ktermios *termios, | |||
530 | MAX3100_STATUS_OE; | 530 | MAX3100_STATUS_OE; |
531 | 531 | ||
532 | /* we are sending char from a workqueue so enable */ | 532 | /* we are sending char from a workqueue so enable */ |
533 | s->port.state->port.tty->low_latency = 1; | 533 | s->port.state->port.low_latency = 1; |
534 | 534 | ||
535 | if (s->poll_time > 0) | 535 | if (s->poll_time > 0) |
536 | del_timer_sync(&s->timer); | 536 | del_timer_sync(&s->timer); |