[PATCH] powerpc: Set the port device in the mpsc serial driver
From: Corey Minyard <hidden>
Date: 2010-02-01 19:38:08
From: Corey Minyard <hidden>
Date: 2010-02-01 19:38:08
From: Corey Minyard <redacted> The mpsc serial driver needx to set the port's device tree element to register properly. Signed-off-by: Corey Minyard <redacted> --- Index: linux-2.6/drivers/serial/mpsc.c ===================================================================
--- linux-2.6.orig/drivers/serial/mpsc.c
+++ linux-2.6/drivers/serial/mpsc.c@@ -2070,6 +2070,7 @@ static int mpsc_drv_probe(struct platfor 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);