diff options
author | Greg Ungerer <gerg@uclinux.org> | 2015-01-07 23:19:51 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-01-09 17:06:57 -0500 |
commit | 201d8975ae5ada760bf29edd837da039f494709a (patch) | |
tree | bc9747991f0d0bd4f3596dae57c7fa64f15c232d | |
parent | ebffbc6cdb8126f1034f5e0e6cd844efb1c3f03f (diff) |
serial: mcf: fix no driver name in probe output
The current output of the device probing looks like this:
ColdFire internal UART serial driver
(NULL device *): ttyS0 at MMIO 0xfc060000 (irq = 90, base_baud = 5208333) is a ColdFire UART
console [ttyS0] enabled
(NULL device *): ttyS1 at MMIO 0xfc064000 (irq = 91, base_baud = 5208333) is a ColdFire UART
(NULL device *): ttyS2 at MMIO 0xfc068000 (irq = 92, base_baud = 5208333) is a ColdFire UART
Fix the port device linkage at probing time so that the device name is
printed out properly, and not "(NULL device *)".
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/tty/serial/mcf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/tty/serial/mcf.c b/drivers/tty/serial/mcf.c index 35f4719b2c0e..a9b0ab38a68c 100644 --- a/drivers/tty/serial/mcf.c +++ b/drivers/tty/serial/mcf.c | |||
@@ -629,6 +629,7 @@ static int mcf_probe(struct platform_device *pdev) | |||
629 | port->mapbase = platp[i].mapbase; | 629 | port->mapbase = platp[i].mapbase; |
630 | port->membase = (platp[i].membase) ? platp[i].membase : | 630 | port->membase = (platp[i].membase) ? platp[i].membase : |
631 | (unsigned char __iomem *) platp[i].mapbase; | 631 | (unsigned char __iomem *) platp[i].mapbase; |
632 | port->dev = &pdev->dev; | ||
632 | port->iotype = SERIAL_IO_MEM; | 633 | port->iotype = SERIAL_IO_MEM; |
633 | port->irq = platp[i].irq; | 634 | port->irq = platp[i].irq; |
634 | port->uartclk = MCF_BUSCLK; | 635 | port->uartclk = MCF_BUSCLK; |