serial: altera-uart: fix NULL device in log message
PATCH 1/1 serial: altera-uart: fix NULL device in log message
Add device pointer to port->dev.
Before:
"(NULL device *): ttyAL0 at MMIO 0x2020 (irq = 6, base_baud = 3125000) is a Altera UART"
After:
"altera_uart 2020.serial: ttyAL0 at MMIO 0x2020 (irq = 6, base_baud = 3125000) is a Altera UART"
Signed-off-by Ley Foon Tan <[email protected]>
--- drivers/tty/serial/altera_uart.c | 1 + 1 file changed, 1 insertion(+)
drivers/tty/serial/altera_uart.c +1 -0
@@ -589,6 +589,7 @@ static int altera_uart_probe(struct platform_device *pdev) port->iotype =SERIAL_IO_MEM ; port->ops = &altera_uart_ops; port->flags =UPF_BOOT_AUTOCONF ; + port->dev = &pdev->dev;platform_set_drvdata (pdev, port);
Signature · 1 line
1.8.2.1
Quoted 4 lines · Ley Foon Tan
Add device pointer to
port->dev.Before:
Quoted 8 lines
"(NULL device *): ttyAL0 at MMIO
0x2020(irq = 6,base_baud= 3125000) is a Altera UART"After:
"altera_uart2020.serial: ttyAL0 at MMIO0x2020(irq = 6,base_baud= 3125000) is a Altera UART"Signed-off-by Ley Foon Tan <[email protected]>
Acked-by Tobias Klauser <[email protected]>
Quoted 4 lines · Ley Foon Tan
Add device pointer to
port->dev.Before:
Quoted 8 lines
"(NULL device *): ttyAL0 at MMIO
0x2020(irq = 6,base_baud= 3125000) is a Altera UART"After:
"altera_uart2020.serial: ttyAL0 at MMIO0x2020(irq = 6,base_baud= 3125000) is a Altera UART"Signed-off-by Ley Foon Tan <[email protected]>
Acked-by Pavel Machek <[email protected]>
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html