Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2071,6 +2071,7 @@ static int mpsc_drv_probe(struct platform_device *dev)

		if (!(rc = mpsc_drv_map_regs(pi, dev))) {
			mpsc_drv_get_platform_data(pi, dev, dev->id);
			pi->port.dev = &dev->dev;

			if (!(rc = mpsc_make_ready(pi))) {
				spin_lock_init(&pi->tx_lock);