diff options
Diffstat (limited to 'drivers/usb/serial/console.c')
| -rw-r--r-- | drivers/usb/serial/console.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/serial/console.c b/drivers/usb/serial/console.c index b9cca6dcde07..9a564286bfd7 100644 --- a/drivers/usb/serial/console.c +++ b/drivers/usb/serial/console.c | |||
| @@ -165,8 +165,8 @@ static int usb_console_setup(struct console *co, char *options) | |||
| 165 | } | 165 | } |
| 166 | 166 | ||
| 167 | if (serial->type->set_termios) { | 167 | if (serial->type->set_termios) { |
| 168 | tty->termios->c_cflag = cflag; | 168 | tty->termios.c_cflag = cflag; |
| 169 | tty_termios_encode_baud_rate(tty->termios, baud, baud); | 169 | tty_termios_encode_baud_rate(&tty->termios, baud, baud); |
| 170 | memset(&dummy, 0, sizeof(struct ktermios)); | 170 | memset(&dummy, 0, sizeof(struct ktermios)); |
| 171 | serial->type->set_termios(tty, port, &dummy); | 171 | serial->type->set_termios(tty, port, &dummy); |
| 172 | 172 | ||
