diff options
Diffstat (limited to 'drivers/usb/serial/keyspan.c')
| -rw-r--r-- | drivers/usb/serial/keyspan.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/serial/keyspan.c b/drivers/usb/serial/keyspan.c index af0b70eaf032..7bcbb47e1449 100644 --- a/drivers/usb/serial/keyspan.c +++ b/drivers/usb/serial/keyspan.c | |||
| @@ -158,7 +158,7 @@ static void keyspan_set_termios(struct tty_struct *tty, | |||
| 158 | 158 | ||
| 159 | p_priv = usb_get_serial_port_data(port); | 159 | p_priv = usb_get_serial_port_data(port); |
| 160 | d_details = p_priv->device_details; | 160 | d_details = p_priv->device_details; |
| 161 | cflag = tty->termios->c_cflag; | 161 | cflag = tty->termios.c_cflag; |
| 162 | device_port = port->number - port->serial->minor; | 162 | device_port = port->number - port->serial->minor; |
| 163 | 163 | ||
| 164 | /* Baud rate calculation takes baud rate as an integer | 164 | /* Baud rate calculation takes baud rate as an integer |
| @@ -179,7 +179,7 @@ static void keyspan_set_termios(struct tty_struct *tty, | |||
| 179 | p_priv->flow_control = (cflag & CRTSCTS) ? flow_cts : flow_none; | 179 | p_priv->flow_control = (cflag & CRTSCTS) ? flow_cts : flow_none; |
| 180 | 180 | ||
| 181 | /* Mark/Space not supported */ | 181 | /* Mark/Space not supported */ |
| 182 | tty->termios->c_cflag &= ~CMSPAR; | 182 | tty->termios.c_cflag &= ~CMSPAR; |
| 183 | 183 | ||
| 184 | keyspan_send_setup(port, 0); | 184 | keyspan_send_setup(port, 0); |
| 185 | } | 185 | } |
| @@ -1086,7 +1086,7 @@ static int keyspan_open(struct tty_struct *tty, struct usb_serial_port *port) | |||
| 1086 | 1086 | ||
| 1087 | device_port = port->number - port->serial->minor; | 1087 | device_port = port->number - port->serial->minor; |
| 1088 | if (tty) { | 1088 | if (tty) { |
| 1089 | cflag = tty->termios->c_cflag; | 1089 | cflag = tty->termios.c_cflag; |
| 1090 | /* Baud rate calculation takes baud rate as an integer | 1090 | /* Baud rate calculation takes baud rate as an integer |
| 1091 | so other rates can be generated if desired. */ | 1091 | so other rates can be generated if desired. */ |
| 1092 | baud_rate = tty_get_baud_rate(tty); | 1092 | baud_rate = tty_get_baud_rate(tty); |
