aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/console.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/serial/console.c')
-rw-r--r--drivers/usb/serial/console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/serial/console.c b/drivers/usb/serial/console.c
index 17940589c647..7d289302ff6c 100644
--- a/drivers/usb/serial/console.c
+++ b/drivers/usb/serial/console.c
@@ -101,7 +101,6 @@ static int usb_console_setup(struct console *co, char *options)
101 cflag |= PARENB; 101 cflag |= PARENB;
102 break; 102 break;
103 } 103 }
104 co->cflag = cflag;
105 104
106 /* 105 /*
107 * no need to check the index here: if the index is wrong, console 106 * no need to check the index here: if the index is wrong, console
@@ -164,6 +163,7 @@ static int usb_console_setup(struct console *co, char *options)
164 serial->type->set_termios(tty, port, &dummy); 163 serial->type->set_termios(tty, port, &dummy);
165 164
166 tty_port_tty_set(&port->port, NULL); 165 tty_port_tty_set(&port->port, NULL);
166 tty_save_termios(tty);
167 tty_kref_put(tty); 167 tty_kref_put(tty);
168 } 168 }
169 tty_port_set_initialized(&port->port, 1); 169 tty_port_set_initialized(&port->port, 1);