From: Peter Korsgaard Set port->line in probe() so multiple devices can be used. Signed-off-by: Peter Korsgaard Acked-by: Olof Johansson Cc: Russell King Cc: Alan Cox Signed-off-by: Andrew Morton --- drivers/serial/uartlite.c | 1 + 1 files changed, 1 insertion(+) diff -puN drivers/serial/uartlite.c~serial-uartlite-support-multiple-devices drivers/serial/uartlite.c --- a/drivers/serial/uartlite.c~serial-uartlite-support-multiple-devices +++ a/drivers/serial/uartlite.c @@ -437,6 +437,7 @@ static int __devinit ulite_probe(struct port->flags = UPF_BOOT_AUTOCONF; port->dev = &pdev->dev; port->type = PORT_UNKNOWN; + port->line = pdev->id; uart_add_one_port(&ulite_uart_driver, port); platform_set_drvdata(pdev, port); _