diff options
Diffstat (limited to 'drivers/serial/icom.c')
-rw-r--r-- | drivers/serial/icom.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/serial/icom.c b/drivers/serial/icom.c index cd1b6a45bb82..2d7feecaf492 100644 --- a/drivers/serial/icom.c +++ b/drivers/serial/icom.c | |||
@@ -617,7 +617,7 @@ static void shutdown(struct icom_port *icom_port) | |||
617 | * disable break condition | 617 | * disable break condition |
618 | */ | 618 | */ |
619 | cmdReg = readb(&icom_port->dram->CmdReg); | 619 | cmdReg = readb(&icom_port->dram->CmdReg); |
620 | if ((cmdReg | CMD_SND_BREAK) == CMD_SND_BREAK) { | 620 | if (cmdReg & CMD_SND_BREAK) { |
621 | writeb(cmdReg & ~CMD_SND_BREAK, &icom_port->dram->CmdReg); | 621 | writeb(cmdReg & ~CMD_SND_BREAK, &icom_port->dram->CmdReg); |
622 | } | 622 | } |
623 | } | 623 | } |
@@ -627,7 +627,7 @@ static int icom_write(struct uart_port *port) | |||
627 | unsigned long data_count; | 627 | unsigned long data_count; |
628 | unsigned char cmdReg; | 628 | unsigned char cmdReg; |
629 | unsigned long offset; | 629 | unsigned long offset; |
630 | int temp_tail = port->info->xmit.tail; | 630 | int temp_tail = port->state->xmit.tail; |
631 | 631 | ||
632 | trace(ICOM_PORT, "WRITE", 0); | 632 | trace(ICOM_PORT, "WRITE", 0); |
633 | 633 | ||
@@ -638,11 +638,11 @@ static int icom_write(struct uart_port *port) | |||
638 | } | 638 | } |
639 | 639 | ||
640 | data_count = 0; | 640 | data_count = 0; |
641 | while ((port->info->xmit.head != temp_tail) && | 641 | while ((port->state->xmit.head != temp_tail) && |
642 | (data_count <= XMIT_BUFF_SZ)) { | 642 | (data_count <= XMIT_BUFF_SZ)) { |
643 | 643 | ||
644 | ICOM_PORT->xmit_buf[data_count++] = | 644 | ICOM_PORT->xmit_buf[data_count++] = |
645 | port->info->xmit.buf[temp_tail]; | 645 | port->state->xmit.buf[temp_tail]; |
646 | 646 | ||
647 | temp_tail++; | 647 | temp_tail++; |
648 | temp_tail &= (UART_XMIT_SIZE - 1); | 648 | temp_tail &= (UART_XMIT_SIZE - 1); |
@@ -694,8 +694,8 @@ static inline void check_modem_status(struct icom_port *icom_port) | |||
694 | uart_handle_cts_change(&icom_port->uart_port, | 694 | uart_handle_cts_change(&icom_port->uart_port, |
695 | delta_status & ICOM_CTS); | 695 | delta_status & ICOM_CTS); |
696 | 696 | ||
697 | wake_up_interruptible(&icom_port->uart_port.info-> | 697 | wake_up_interruptible(&icom_port->uart_port.state-> |
698 | delta_msr_wait); | 698 | port.delta_msr_wait); |
699 | old_status = status; | 699 | old_status = status; |
700 | } | 700 | } |
701 | spin_unlock(&icom_port->uart_port.lock); | 701 | spin_unlock(&icom_port->uart_port.lock); |
@@ -718,10 +718,10 @@ static void xmit_interrupt(u16 port_int_reg, struct icom_port *icom_port) | |||
718 | icom_port->uart_port.icount.tx += count; | 718 | icom_port->uart_port.icount.tx += count; |
719 | 719 | ||
720 | for (i=0; i<count && | 720 | for (i=0; i<count && |
721 | !uart_circ_empty(&icom_port->uart_port.info->xmit); i++) { | 721 | !uart_circ_empty(&icom_port->uart_port.state->xmit); i++) { |
722 | 722 | ||
723 | icom_port->uart_port.info->xmit.tail++; | 723 | icom_port->uart_port.state->xmit.tail++; |
724 | icom_port->uart_port.info->xmit.tail &= | 724 | icom_port->uart_port.state->xmit.tail &= |
725 | (UART_XMIT_SIZE - 1); | 725 | (UART_XMIT_SIZE - 1); |
726 | } | 726 | } |
727 | 727 | ||
@@ -735,7 +735,7 @@ static void xmit_interrupt(u16 port_int_reg, struct icom_port *icom_port) | |||
735 | static void recv_interrupt(u16 port_int_reg, struct icom_port *icom_port) | 735 | static void recv_interrupt(u16 port_int_reg, struct icom_port *icom_port) |
736 | { | 736 | { |
737 | short int count, rcv_buff; | 737 | short int count, rcv_buff; |
738 | struct tty_struct *tty = icom_port->uart_port.info->port.tty; | 738 | struct tty_struct *tty = icom_port->uart_port.state->port.tty; |
739 | unsigned short int status; | 739 | unsigned short int status; |
740 | struct uart_icount *icount; | 740 | struct uart_icount *icount; |
741 | unsigned long offset; | 741 | unsigned long offset; |