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