Skip to contentSkip to conversation

powerpc: Set the port device in the mpsc serial driver

PATCH New Corey Minyard 1 participant 1 message Feb 1, 2010

lore
Share & tools
lore
#0 lore raw

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.

---

drivers/serial/mpsc.c +1 -0
Index: 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);