]> git.baikalelectronics.ru Git - kernel.git/commit
serial: mcf: fix no driver name in probe output
authorGreg Ungerer <gerg@uclinux.org>
Thu, 8 Jan 2015 04:19:51 +0000 (14:19 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Jan 2015 22:06:57 +0000 (14:06 -0800)
commit21d275bc999601ee1bf50b7521595d92d05e4961
treebc9747991f0d0bd4f3596dae57c7fa64f15c232d
parent45a8501baaf0a78eb9c3675a2ea6bf8a87db502b
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>
drivers/tty/serial/mcf.c