TTY: serial, extract uart_port_startup
authorJiri Slaby <jslaby@suse.cz>
Wed, 9 Nov 2011 20:34:14 +0000 (21:34 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 15 Nov 2011 23:59:04 +0000 (15:59 -0800)
commitc0d92be6bc4fbbf6402fde2c0bc08fc4d2b58430
treee33a231f2bf1c944db3ca9589a162373cc308edc
parentb922e19d03a680d732b61dc8e82d9948f6f8b6c7
TTY: serial, extract uart_port_startup

Extract ASYNC_INITIALIZED/TTY_IO_ERROR handling from uart_startup.
This will be useful for tty port helpers. These flags are handled
by the helpers instead.

So we create a new function uart_port_startup without touching these
flags there. And we keep uart_startup with the exact behavior as
before. We need that one because we start/stop the device from other
paths than open/close/hangup.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/tty/serial/serial_core.c