aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/m32r_sio.c
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2016-05-09 03:11:57 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-06-25 11:56:30 -0400
commit6137b7a62978915d76db69e17e25e8e0b1057254 (patch)
tree4b36a2e522df9de01fd6db8c01dd0b4b947f23ba /drivers/tty/serial/m32r_sio.c
parent5691e03593cb9f7abfee93f4581de8933f1d6630 (diff)
tty: stop defining STD_COM_FLAGS in drivers
STD_COM_FLAGS is mostly a bad name for what the drivers thinks it is. Stop using it and pass the flags directly. cyclades defines it as 0, so we do not assign anything to freshly tty_port_init'ed structure. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/m32r_sio.c')
-rw-r--r--drivers/tty/serial/m32r_sio.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/tty/serial/m32r_sio.c b/drivers/tty/serial/m32r_sio.c
index 68765f7c2645..1b01504cf306 100644
--- a/drivers/tty/serial/m32r_sio.c
+++ b/drivers/tty/serial/m32r_sio.c
@@ -51,9 +51,6 @@
51 51
52#define PASS_LIMIT 256 52#define PASS_LIMIT 256
53 53
54/* Standard COM flags */
55#define STD_COM_FLAGS (UPF_BOOT_AUTOCONF | UPF_SKIP_TEST)
56
57static const struct { 54static const struct {
58 unsigned int port; 55 unsigned int port;
59 unsigned int irq; 56 unsigned int irq;
@@ -892,7 +889,7 @@ static void __init m32r_sio_init_ports(void)
892 up->port.iobase = old_serial_port[i].port; 889 up->port.iobase = old_serial_port[i].port;
893 up->port.irq = irq_canonicalize(old_serial_port[i].irq); 890 up->port.irq = irq_canonicalize(old_serial_port[i].irq);
894 up->port.uartclk = BAUD_RATE * 16; 891 up->port.uartclk = BAUD_RATE * 16;
895 up->port.flags = STD_COM_FLAGS; 892 up->port.flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST;
896 up->port.membase = 0; 893 up->port.membase = 0;
897 up->port.iotype = 0; 894 up->port.iotype = 0;
898 up->port.regshift = 0; 895 up->port.regshift = 0;