diff options
author | Ley Foon Tan <lftan@altera.com> | 2014-12-16 02:28:34 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-01-09 17:28:17 -0500 |
commit | b820cd7643d5fdf05d6f5d32507d330609113248 (patch) | |
tree | ea3264ca0bcb9d962e6d54ae56e0183c4e2d84d3 /drivers/tty | |
parent | 47ef6df27e0b420b44966043935ca96791184782 (diff) |
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 <lftan@altera.com>
Acked-by: Tobias Klauser <tklauser@distanz.ch>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/serial/altera_uart.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/tty/serial/altera_uart.c b/drivers/tty/serial/altera_uart.c index eb15a50623cb..b2859fe07e14 100644 --- a/drivers/tty/serial/altera_uart.c +++ b/drivers/tty/serial/altera_uart.c | |||
@@ -589,6 +589,7 @@ static int altera_uart_probe(struct platform_device *pdev) | |||
589 | port->iotype = SERIAL_IO_MEM; | 589 | port->iotype = SERIAL_IO_MEM; |
590 | port->ops = &altera_uart_ops; | 590 | port->ops = &altera_uart_ops; |
591 | port->flags = UPF_BOOT_AUTOCONF; | 591 | port->flags = UPF_BOOT_AUTOCONF; |
592 | port->dev = &pdev->dev; | ||
592 | 593 | ||
593 | platform_set_drvdata(pdev, port); | 594 | platform_set_drvdata(pdev, port); |
594 | 595 | ||