From: Alan Cox Earlier patches have removed the checking for old v new differences from the USB drivers so we can now pass in a valid blank old termios so that we don't to fill the drivers with magic hacks for console support Signed-off-by: Alan Cox Cc: Greg KH Signed-off-by: Andrew Morton --- diff -puN drivers/serial/serial_core.c~usb_serial-stop-passing-null-to-functions-that-expect-data drivers/serial/serial_core.c --- a/drivers/serial/serial_core.c~usb_serial-stop-passing-null-to-functions-that-expect-data +++ a/drivers/serial/serial_core.c @@ -1885,6 +1885,7 @@ uart_set_options(struct uart_port *port, int baud, int parity, int bits, int flow) { struct ktermios termios; + static struct ktermios dummy; int i; /* @@ -1930,7 +1931,7 @@ uart_set_options(struct uart_port *port, */ port->mctrl |= TIOCM_DTR; - port->ops->set_termios(port, &termios, NULL); + port->ops->set_termios(port, &termios, &dummy); co->cflag = termios.c_cflag; return 0; _