aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorLey Foon Tan <lftan@altera.com>2014-12-16 02:27:46 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-01-09 17:28:17 -0500
commit47ef6df27e0b420b44966043935ca96791184782 (patch)
tree44917dd5401ecc0f0c68074fd3c33c644c4dcd72 /drivers/tty
parentb543c301c2c5fbf24ed160a0c227122f09f38e5f (diff)
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 <lftan@altera.com> Acked-by: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/serial/altera_jtaguart.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/tty/serial/altera_jtaguart.c b/drivers/tty/serial/altera_jtaguart.c
index 192d0435bb86..0fefdd8931a2 100644
--- a/drivers/tty/serial/altera_jtaguart.c
+++ b/drivers/tty/serial/altera_jtaguart.c
@@ -441,6 +441,7 @@ static int altera_jtaguart_probe(struct platform_device *pdev)
441 port->iotype = SERIAL_IO_MEM; 441 port->iotype = SERIAL_IO_MEM;
442 port->ops = &altera_jtaguart_ops; 442 port->ops = &altera_jtaguart_ops;
443 port->flags = UPF_BOOT_AUTOCONF; 443 port->flags = UPF_BOOT_AUTOCONF;
444 port->dev = &pdev->dev;
444 445
445 uart_add_one_port(&altera_jtaguart_driver, port); 446 uart_add_one_port(&altera_jtaguart_driver, port);
446 447