summaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorLey Foon Tan <lftan@altera.com>2014-12-16 15:28:34 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-01-09 14:28:17 -0800
commitb820cd7643d5fdf05d6f5d32507d330609113248 (patch)
treeea3264ca0bcb9d962e6d54ae56e0183c4e2d84d3 /drivers/tty
parent47ef6df27e0b420b44966043935ca96791184782 (diff)
downloadlinux-b820cd7643d5fdf05d6f5d32507d330609113248.tar.gz
linux-b820cd7643d5fdf05d6f5d32507d330609113248.tar.bz2
linux-b820cd7643d5fdf05d6f5d32507d330609113248.zip
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.c1
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)
port->iotype = SERIAL_IO_MEM;
port->ops = &altera_uart_ops;
port->flags = UPF_BOOT_AUTOCONF;
+ port->dev = &pdev->dev;
platform_set_drvdata(pdev, port);