1
0
Fork 0

serial: stop passing NULL to functions that expect data

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 <alan@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
hifive-unleashed-5.1
Alan Cox 2007-10-18 01:24:16 -07:00 committed by Greg Kroah-Hartman
parent 3657f6c018
commit 149b36eae2
1 changed files with 2 additions and 1 deletions

View File

@ -1875,6 +1875,7 @@ uart_set_options(struct uart_port *port, struct console *co,
int baud, int parity, int bits, int flow)
{
struct ktermios termios;
static struct ktermios dummy;
int i;
/*
@ -1920,7 +1921,7 @@ uart_set_options(struct uart_port *port, struct console *co,
*/
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;