TTY: serial/m32r_sio, simplify old_serial_port
authorJiri Slaby <jslaby@suse.cz>
Tue, 12 Jan 2016 09:59:07 +0000 (10:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 7 Feb 2016 06:16:58 +0000 (22:16 -0800)
commitc8e7d143d519724b3bf5b86615eca2962b77a826
tree68395b82c18dced786a12c42ee0e7a9f1c6a0bed
parentd4dbe374f430156738d34e4572c58f387d558e83
TTY: serial/m32r_sio, simplify old_serial_port

The only variables in old_serial_port are port and irq. So make
old_serial_port contain only those two and move the initialization of
the rest to the place where old_serial_port is actually read.

Also get rid of SERIAL_PORT_DFNS. It is ugly and having the
initializer where it belongs makes more sense. Finally, use already
defined UART_NR in the loop.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/m32r_sio.c