|
@@ -2662,16 +2662,17 @@ static int __devinit serial8250_probe(struct platform_device *dev)
|
|
|
memset(&port, 0, sizeof(struct uart_port));
|
|
|
|
|
|
for (i = 0; p && p->flags != 0; p++, i++) {
|
|
|
- port.iobase = p->iobase;
|
|
|
- port.membase = p->membase;
|
|
|
- port.irq = p->irq;
|
|
|
- port.uartclk = p->uartclk;
|
|
|
- port.regshift = p->regshift;
|
|
|
- port.iotype = p->iotype;
|
|
|
- port.flags = p->flags;
|
|
|
- port.mapbase = p->mapbase;
|
|
|
- port.hub6 = p->hub6;
|
|
|
- port.dev = &dev->dev;
|
|
|
+ port.iobase = p->iobase;
|
|
|
+ port.membase = p->membase;
|
|
|
+ port.irq = p->irq;
|
|
|
+ port.uartclk = p->uartclk;
|
|
|
+ port.regshift = p->regshift;
|
|
|
+ port.iotype = p->iotype;
|
|
|
+ port.flags = p->flags;
|
|
|
+ port.mapbase = p->mapbase;
|
|
|
+ port.hub6 = p->hub6;
|
|
|
+ port.private_data = p->private_data;
|
|
|
+ port.dev = &dev->dev;
|
|
|
if (share_irqs)
|
|
|
port.flags |= UPF_SHARE_IRQ;
|
|
|
ret = serial8250_register_port(&port);
|
|
@@ -2812,15 +2813,16 @@ int serial8250_register_port(struct uart_port *port)
|
|
|
if (uart) {
|
|
|
uart_remove_one_port(&serial8250_reg, &uart->port);
|
|
|
|
|
|
- uart->port.iobase = port->iobase;
|
|
|
- uart->port.membase = port->membase;
|
|
|
- uart->port.irq = port->irq;
|
|
|
- uart->port.uartclk = port->uartclk;
|
|
|
- uart->port.fifosize = port->fifosize;
|
|
|
- uart->port.regshift = port->regshift;
|
|
|
- uart->port.iotype = port->iotype;
|
|
|
- uart->port.flags = port->flags | UPF_BOOT_AUTOCONF;
|
|
|
- uart->port.mapbase = port->mapbase;
|
|
|
+ uart->port.iobase = port->iobase;
|
|
|
+ uart->port.membase = port->membase;
|
|
|
+ uart->port.irq = port->irq;
|
|
|
+ uart->port.uartclk = port->uartclk;
|
|
|
+ uart->port.fifosize = port->fifosize;
|
|
|
+ uart->port.regshift = port->regshift;
|
|
|
+ uart->port.iotype = port->iotype;
|
|
|
+ uart->port.flags = port->flags | UPF_BOOT_AUTOCONF;
|
|
|
+ uart->port.mapbase = port->mapbase;
|
|
|
+ uart->port.private_data = port->private_data;
|
|
|
if (port->dev)
|
|
|
uart->port.dev = port->dev;
|
|
|
|