serial: altera-juart: fix NULL device in log message
PATCH 1/1 serial: altera-juart: fix NULL device in log message
Add device pointer to port->dev.
Before:
"(NULL device *): ttyJ0 at MMIO 0x1008 (irq = 2, base_baud = 0) is a Altera JTAG UART"
After:
"altera_jtaguart 1008.serial: ttyJ0 at MMIO 0x1008 (irq = 2, base_baud = 0) is a Altera JTAG UART"
Signed-off-by Ley Foon Tan <[email protected]>
--- drivers/tty/serial/altera_jtaguart.c | 1 + 1 file changed, 1 insertion(+)
drivers/tty/serial/altera_jtaguart.c +1 -0
@@ -441,6 +441,7 @@ static int altera_jtaguart_probe(struct platform_device *pdev) port->iotype =SERIAL_IO_MEM ; port->ops = &altera_jtaguart_ops; port->flags =UPF_BOOT_AUTOCONF ; + port->dev = &pdev->dev;uart_add_one_port (&altera_jtaguart_driver, 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 *): ttyJ0 at MMIO
0x1008(irq = 2,base_baud= 0) is a Altera JTAG UART"After:
"altera_jtaguart1008.serial: ttyJ0 at MMIO0x1008(irq = 2,base_baud= 0) is a Altera JTAG UART"Signed-off-by Ley Foon Tan <[email protected]>
Acked-by Tobias Klauser <[email protected]>