powerpc/mpsc: Set the port device in the mpsc serial driver
The mpsc serial driver needx to set the port's device tree element to register properly. Signed-off-by: Corey Minyard <cminyard@mvista.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
parent
58706ef96f
commit
f467bc148d
|
@ -2071,6 +2071,7 @@ static int mpsc_drv_probe(struct platform_device *dev)
|
||||||
|
|
||||||
if (!(rc = mpsc_drv_map_regs(pi, dev))) {
|
if (!(rc = mpsc_drv_map_regs(pi, dev))) {
|
||||||
mpsc_drv_get_platform_data(pi, dev, dev->id);
|
mpsc_drv_get_platform_data(pi, dev, dev->id);
|
||||||
|
pi->port.dev = &dev->dev;
|
||||||
|
|
||||||
if (!(rc = mpsc_make_ready(pi))) {
|
if (!(rc = mpsc_make_ready(pi))) {
|
||||||
spin_lock_init(&pi->tx_lock);
|
spin_lock_init(&pi->tx_lock);
|
||||||
|
|
Loading…
Reference in a new issue