diff options
Diffstat (limited to 'drivers/serial/8250.c')
-rw-r--r-- | drivers/serial/8250.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/serial/8250.c b/drivers/serial/8250.c index 1fd4894d9b51..e415c5eca599 100644 --- a/drivers/serial/8250.c +++ b/drivers/serial/8250.c | |||
@@ -1382,7 +1382,7 @@ static void serial8250_enable_ms(struct uart_port *port) | |||
1382 | static void | 1382 | static void |
1383 | receive_chars(struct uart_8250_port *up, unsigned int *status) | 1383 | receive_chars(struct uart_8250_port *up, unsigned int *status) |
1384 | { | 1384 | { |
1385 | struct tty_struct *tty = up->port.info->port.tty; | 1385 | struct tty_struct *tty = up->port.state->port.tty; |
1386 | unsigned char ch, lsr = *status; | 1386 | unsigned char ch, lsr = *status; |
1387 | int max_count = 256; | 1387 | int max_count = 256; |
1388 | char flag; | 1388 | char flag; |
@@ -1457,7 +1457,7 @@ ignore_char: | |||
1457 | 1457 | ||
1458 | static void transmit_chars(struct uart_8250_port *up) | 1458 | static void transmit_chars(struct uart_8250_port *up) |
1459 | { | 1459 | { |
1460 | struct circ_buf *xmit = &up->port.info->xmit; | 1460 | struct circ_buf *xmit = &up->port.state->xmit; |
1461 | int count; | 1461 | int count; |
1462 | 1462 | ||
1463 | if (up->port.x_char) { | 1463 | if (up->port.x_char) { |
@@ -1500,7 +1500,7 @@ static unsigned int check_modem_status(struct uart_8250_port *up) | |||
1500 | status |= up->msr_saved_flags; | 1500 | status |= up->msr_saved_flags; |
1501 | up->msr_saved_flags = 0; | 1501 | up->msr_saved_flags = 0; |
1502 | if (status & UART_MSR_ANY_DELTA && up->ier & UART_IER_MSI && | 1502 | if (status & UART_MSR_ANY_DELTA && up->ier & UART_IER_MSI && |
1503 | up->port.info != NULL) { | 1503 | up->port.state != NULL) { |
1504 | if (status & UART_MSR_TERI) | 1504 | if (status & UART_MSR_TERI) |
1505 | up->port.icount.rng++; | 1505 | up->port.icount.rng++; |
1506 | if (status & UART_MSR_DDSR) | 1506 | if (status & UART_MSR_DDSR) |
@@ -1510,7 +1510,7 @@ static unsigned int check_modem_status(struct uart_8250_port *up) | |||
1510 | if (status & UART_MSR_DCTS) | 1510 | if (status & UART_MSR_DCTS) |
1511 | uart_handle_cts_change(&up->port, status & UART_MSR_CTS); | 1511 | uart_handle_cts_change(&up->port, status & UART_MSR_CTS); |
1512 | 1512 | ||
1513 | wake_up_interruptible(&up->port.info->delta_msr_wait); | 1513 | wake_up_interruptible(&up->port.state->delta_msr_wait); |
1514 | } | 1514 | } |
1515 | 1515 | ||
1516 | return status; | 1516 | return status; |
@@ -1764,7 +1764,7 @@ static void serial8250_backup_timeout(unsigned long data) | |||
1764 | up->lsr_saved_flags |= lsr & LSR_SAVE_FLAGS; | 1764 | up->lsr_saved_flags |= lsr & LSR_SAVE_FLAGS; |
1765 | spin_unlock_irqrestore(&up->port.lock, flags); | 1765 | spin_unlock_irqrestore(&up->port.lock, flags); |
1766 | if ((iir & UART_IIR_NO_INT) && (up->ier & UART_IER_THRI) && | 1766 | if ((iir & UART_IIR_NO_INT) && (up->ier & UART_IER_THRI) && |
1767 | (!uart_circ_empty(&up->port.info->xmit) || up->port.x_char) && | 1767 | (!uart_circ_empty(&up->port.state->xmit) || up->port.x_char) && |
1768 | (lsr & UART_LSR_THRE)) { | 1768 | (lsr & UART_LSR_THRE)) { |
1769 | iir &= ~(UART_IIR_ID | UART_IIR_NO_INT); | 1769 | iir &= ~(UART_IIR_ID | UART_IIR_NO_INT); |
1770 | iir |= UART_IIR_THRI; | 1770 | iir |= UART_IIR_THRI; |