diff options
Diffstat (limited to 'drivers/usb/serial/quatech2.c')
| -rw-r--r-- | drivers/usb/serial/quatech2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/serial/quatech2.c b/drivers/usb/serial/quatech2.c index 151670b6b72a..7df9cdb053ed 100644 --- a/drivers/usb/serial/quatech2.c +++ b/drivers/usb/serial/quatech2.c | |||
| @@ -275,7 +275,7 @@ static void qt2_set_termios(struct tty_struct *tty, | |||
| 275 | { | 275 | { |
| 276 | struct usb_device *dev = port->serial->dev; | 276 | struct usb_device *dev = port->serial->dev; |
| 277 | struct qt2_port_private *port_priv; | 277 | struct qt2_port_private *port_priv; |
| 278 | struct ktermios *termios = tty->termios; | 278 | struct ktermios *termios = &tty->termios; |
| 279 | u16 baud; | 279 | u16 baud; |
| 280 | unsigned int cflag = termios->c_cflag; | 280 | unsigned int cflag = termios->c_cflag; |
| 281 | u16 new_lcr = 0; | 281 | u16 new_lcr = 0; |
| @@ -406,7 +406,7 @@ static int qt2_open(struct tty_struct *tty, struct usb_serial_port *port) | |||
| 406 | port_priv->device_port = (u8) device_port; | 406 | port_priv->device_port = (u8) device_port; |
| 407 | 407 | ||
| 408 | if (tty) | 408 | if (tty) |
| 409 | qt2_set_termios(tty, port, tty->termios); | 409 | qt2_set_termios(tty, port, &tty->termios); |
| 410 | 410 | ||
| 411 | return 0; | 411 | return 0; |
| 412 | 412 | ||
