linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] serial: altera-uart: fix NULL device in log message
@ 2014-12-16  7:28 Ley Foon Tan
  2014-12-16  8:00 ` Tobias Klauser
  2015-01-01 19:15 ` Pavel Machek
  0 siblings, 2 replies; 3+ messages in thread
From: Ley Foon Tan @ 2014-12-16  7:28 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 *): 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>
---
 drivers/tty/serial/altera_uart.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/tty/serial/altera_uart.c b/drivers/tty/serial/altera_uart.c
index eb15a50..b2859fe 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);
 
-- 
1.8.2.1

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

* Re: [PATCH] serial: altera-uart: fix NULL device in log message
  2014-12-16  7:28 [PATCH] serial: altera-uart: fix NULL device in log message Ley Foon Tan
@ 2014-12-16  8:00 ` Tobias Klauser
  2015-01-01 19:15 ` Pavel Machek
  1 sibling, 0 replies; 3+ 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:28:34 +0100, Ley Foon Tan <lftan@altera.com> wrote:
> 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>

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

* Re: [PATCH] serial: altera-uart: fix NULL device in log message
  2014-12-16  7:28 [PATCH] serial: altera-uart: fix NULL device in log message Ley Foon Tan
  2014-12-16  8:00 ` Tobias Klauser
@ 2015-01-01 19:15 ` Pavel Machek
  1 sibling, 0 replies; 3+ messages in thread
From: Pavel Machek @ 2015-01-01 19:15 UTC (permalink / raw)
  To: Ley Foon Tan
  Cc: Tobias Klauser, Greg Kroah-Hartman, linux-kernel, lftan.linux,
	linux-serial, nios2-dev

On Tue 2014-12-16 15:28:34, Ley Foon Tan wrote:
> 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: Pavel Machek <pavel@ucw.cz>

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

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

end of thread, other threads:[~2015-01-01 19:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-16  7:28 [PATCH] serial: altera-uart: fix NULL device in log message Ley Foon Tan
2014-12-16  8:00 ` Tobias Klauser
2015-01-01 19:15 ` Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).