mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] serial: altera-juart: fix NULL device in log message
@ 2014-12-16  7:27 Ley Foon Tan
  2014-12-16  8:00 ` Tobias Klauser
  0 siblings, 1 reply; 2+ messages in thread
From: Ley Foon Tan @ 2014-12-16  7:27 UTC (permalink / raw)
  To: Tobias Klauser, Greg Kroah-Hartman
  Cc: linux-kernel, Ley Foon Tan, lftan.linux, linux-serial, nios2-dev

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>
---
 drivers/tty/serial/altera_jtaguart.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/tty/serial/altera_jtaguart.c b/drivers/tty/serial/altera_jtaguart.c
index 192d043..0fefdd8 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)
 	port->iotype = SERIAL_IO_MEM;
 	port->ops = &altera_jtaguart_ops;
 	port->flags = UPF_BOOT_AUTOCONF;
+	port->dev = &pdev->dev;
 
 	uart_add_one_port(&altera_jtaguart_driver, port);
 
-- 
1.8.2.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] serial: altera-juart: fix NULL device in log message
  2014-12-16  7:27 [PATCH] serial: altera-juart: fix NULL device in log message Ley Foon Tan
@ 2014-12-16  8:00 ` Tobias Klauser
  0 siblings, 0 replies; 2+ messages in thread
From: Tobias Klauser @ 2014-12-16  8:00 UTC (permalink / raw)
  To: Ley Foon Tan
  Cc: Greg Kroah-Hartman, linux-kernel, lftan.linux, linux-serial, nios2-dev

On 2014-12-16 at 08:27:46 +0100, Ley Foon Tan <lftan@altera.com> wrote:
> 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>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-12-16  8:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-16  7:27 [PATCH] serial: altera-juart: fix NULL device in log message Ley Foon Tan
2014-12-16  8:00 ` Tobias Klauser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®