serial: altera-juart: fix NULL device in log message
authorLey Foon Tan <lftan@altera.com>
Tue, 16 Dec 2014 07:27:46 +0000 (15:27 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Jan 2015 22:28:17 +0000 (14:28 -0800)
commit47ef6df27e0b420b44966043935ca96791184782
tree44917dd5401ecc0f0c68074fd3c33c644c4dcd72
parentb543c301c2c5fbf24ed160a0c227122f09f38e5f
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>
drivers/tty/serial/altera_jtaguart.c