powerpc: Set the port device in the mpsc serial driver
PATCH 1/1 powerpc: Set the port device in the mpsc serial driver
From: Corey Minyard <[email protected]>
The mpsc serial driver needx to set the port's device tree element to register properly.
Signed-off-by Corey Minyard <[email protected]>
---
drivers/serial/mpsc.c +1 -0
@@ -2070,6 +2070,7 @@ static int mpsc_drv_probe(struct platforif (!(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);