Commit b0f8aed2 authored by Jiri Slaby's avatar Jiri Slaby Committed by Greg Kroah-Hartman

tty: 8250, drop unused members from struct old_serial_port

hub6 and irqflags from struct old_serial_port are nowhere set. Drop
them from the structure and replace the reads by zeros.
Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6137b7a6
...@@ -53,11 +53,9 @@ struct old_serial_port { ...@@ -53,11 +53,9 @@ struct old_serial_port {
unsigned int port; unsigned int port;
unsigned int irq; unsigned int irq;
upf_t flags; upf_t flags;
unsigned char hub6;
unsigned char io_type; unsigned char io_type;
unsigned char __iomem *iomem_base; unsigned char __iomem *iomem_base;
unsigned short iomem_reg_shift; unsigned short iomem_reg_shift;
unsigned long irqflags;
}; };
struct serial8250_config { struct serial8250_config {
......
...@@ -546,10 +546,10 @@ static void __init serial8250_isa_init_ports(void) ...@@ -546,10 +546,10 @@ static void __init serial8250_isa_init_ports(void)
port->iobase = old_serial_port[i].port; port->iobase = old_serial_port[i].port;
port->irq = irq_canonicalize(old_serial_port[i].irq); port->irq = irq_canonicalize(old_serial_port[i].irq);
port->irqflags = old_serial_port[i].irqflags; port->irqflags = 0;
port->uartclk = old_serial_port[i].baud_base * 16; port->uartclk = old_serial_port[i].baud_base * 16;
port->flags = old_serial_port[i].flags; port->flags = old_serial_port[i].flags;
port->hub6 = old_serial_port[i].hub6; port->hub6 = 0;
port->membase = old_serial_port[i].iomem_base; port->membase = old_serial_port[i].iomem_base;
port->iotype = old_serial_port[i].io_type; port->iotype = old_serial_port[i].io_type;
port->regshift = old_serial_port[i].iomem_reg_shift; port->regshift = old_serial_port[i].iomem_reg_shift;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment