diff options
Diffstat (limited to 'drivers/tty/isicom.c')
-rw-r--r-- | drivers/tty/isicom.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/tty/isicom.c b/drivers/tty/isicom.c index e1235accab74..d7492e183607 100644 --- a/drivers/tty/isicom.c +++ b/drivers/tty/isicom.c | |||
@@ -600,7 +600,7 @@ static irqreturn_t isicom_interrupt(int irq, void *dev_id) | |||
600 | port->status &= ~ISI_DCD; | 600 | port->status &= ~ISI_DCD; |
601 | } | 601 | } |
602 | 602 | ||
603 | if (port->port.flags & ASYNC_CTS_FLOW) { | 603 | if (tty_port_cts_enabled(&port->port)) { |
604 | if (tty->hw_stopped) { | 604 | if (tty->hw_stopped) { |
605 | if (header & ISI_CTS) { | 605 | if (header & ISI_CTS) { |
606 | port->port.tty->hw_stopped = 0; | 606 | port->port.tty->hw_stopped = 0; |
@@ -702,7 +702,7 @@ static void isicom_config_port(struct tty_struct *tty) | |||
702 | 702 | ||
703 | /* 1,2,3,4 => 57.6, 115.2, 230, 460 kbps resp. */ | 703 | /* 1,2,3,4 => 57.6, 115.2, 230, 460 kbps resp. */ |
704 | if (baud < 1 || baud > 4) | 704 | if (baud < 1 || baud > 4) |
705 | tty->termios->c_cflag &= ~CBAUDEX; | 705 | tty->termios.c_cflag &= ~CBAUDEX; |
706 | else | 706 | else |
707 | baud += 15; | 707 | baud += 15; |
708 | } | 708 | } |
@@ -1196,8 +1196,8 @@ static void isicom_set_termios(struct tty_struct *tty, | |||
1196 | if (isicom_paranoia_check(port, tty->name, "isicom_set_termios")) | 1196 | if (isicom_paranoia_check(port, tty->name, "isicom_set_termios")) |
1197 | return; | 1197 | return; |
1198 | 1198 | ||
1199 | if (tty->termios->c_cflag == old_termios->c_cflag && | 1199 | if (tty->termios.c_cflag == old_termios->c_cflag && |
1200 | tty->termios->c_iflag == old_termios->c_iflag) | 1200 | tty->termios.c_iflag == old_termios->c_iflag) |
1201 | return; | 1201 | return; |
1202 | 1202 | ||
1203 | spin_lock_irqsave(&port->card->card_lock, flags); | 1203 | spin_lock_irqsave(&port->card->card_lock, flags); |
@@ -1205,7 +1205,7 @@ static void isicom_set_termios(struct tty_struct *tty, | |||
1205 | spin_unlock_irqrestore(&port->card->card_lock, flags); | 1205 | spin_unlock_irqrestore(&port->card->card_lock, flags); |
1206 | 1206 | ||
1207 | if ((old_termios->c_cflag & CRTSCTS) && | 1207 | if ((old_termios->c_cflag & CRTSCTS) && |
1208 | !(tty->termios->c_cflag & CRTSCTS)) { | 1208 | !(tty->termios.c_cflag & CRTSCTS)) { |
1209 | tty->hw_stopped = 0; | 1209 | tty->hw_stopped = 0; |
1210 | isicom_start(tty); | 1210 | isicom_start(tty); |
1211 | } | 1211 | } |
@@ -1611,7 +1611,8 @@ static int __devinit isicom_probe(struct pci_dev *pdev, | |||
1611 | goto errunri; | 1611 | goto errunri; |
1612 | 1612 | ||
1613 | for (index = 0; index < board->port_count; index++) | 1613 | for (index = 0; index < board->port_count; index++) |
1614 | tty_register_device(isicom_normal, board->index * 16 + index, | 1614 | tty_port_register_device(&board->ports[index].port, |
1615 | isicom_normal, board->index * 16 + index, | ||
1615 | &pdev->dev); | 1616 | &pdev->dev); |
1616 | 1617 | ||
1617 | return 0; | 1618 | return 0; |