Commit f467bc14 authored by Corey Minyard's avatar Corey Minyard Committed by Benjamin Herrenschmidt

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: default avatarCorey Minyard <cminyard@mvista.com>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent 58706ef9
...@@ -2071,6 +2071,7 @@ static int mpsc_drv_probe(struct platform_device *dev) ...@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment