diff options
Diffstat (limited to 'drivers/tty/rocket.c')
-rw-r--r-- | drivers/tty/rocket.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/tty/rocket.c b/drivers/tty/rocket.c index 9dd02daf45ca..2ab3b6fdb675 100644 --- a/drivers/tty/rocket.c +++ b/drivers/tty/rocket.c | |||
@@ -959,7 +959,7 @@ static int rp_open(struct tty_struct *tty, struct file *filp) | |||
959 | tty->alt_speed = 460800; | 959 | tty->alt_speed = 460800; |
960 | 960 | ||
961 | configure_r_port(tty, info, NULL); | 961 | configure_r_port(tty, info, NULL); |
962 | if (tty->termios.c_cflag & CBAUD) { | 962 | if (C_BAUD(tty)) { |
963 | sSetDTR(cp); | 963 | sSetDTR(cp); |
964 | sSetRTS(cp); | 964 | sSetRTS(cp); |
965 | } | 965 | } |
@@ -1084,18 +1084,18 @@ static void rp_set_termios(struct tty_struct *tty, | |||
1084 | cp = &info->channel; | 1084 | cp = &info->channel; |
1085 | 1085 | ||
1086 | /* Handle transition to B0 status */ | 1086 | /* Handle transition to B0 status */ |
1087 | if ((old_termios->c_cflag & CBAUD) && !(tty->termios.c_cflag & CBAUD)) { | 1087 | if ((old_termios->c_cflag & CBAUD) && !C_BAUD(tty)) { |
1088 | sClrDTR(cp); | 1088 | sClrDTR(cp); |
1089 | sClrRTS(cp); | 1089 | sClrRTS(cp); |
1090 | } | 1090 | } |
1091 | 1091 | ||
1092 | /* Handle transition away from B0 status */ | 1092 | /* Handle transition away from B0 status */ |
1093 | if (!(old_termios->c_cflag & CBAUD) && (tty->termios.c_cflag & CBAUD)) { | 1093 | if (!(old_termios->c_cflag & CBAUD) && C_BAUD(tty)) { |
1094 | sSetRTS(cp); | 1094 | sSetRTS(cp); |
1095 | sSetDTR(cp); | 1095 | sSetDTR(cp); |
1096 | } | 1096 | } |
1097 | 1097 | ||
1098 | if ((old_termios->c_cflag & CRTSCTS) && !(tty->termios.c_cflag & CRTSCTS)) | 1098 | if ((old_termios->c_cflag & CRTSCTS) && !C_CRTSCTS(tty)) |
1099 | rp_start(tty); | 1099 | rp_start(tty); |
1100 | } | 1100 | } |
1101 | 1101 | ||