public inbox for linuxppc-dev@ozlabs.org
 help / color / mirror / Atom feed
* [PATCH] powerpc: Set the port device in the mpsc serial driver
@ 2010-02-01 19:37 Corey Minyard
  0 siblings, 0 replies; only message in thread
From: Corey Minyard @ 2010-02-01 19:37 UTC (permalink / raw)
  To: linuxppc-dev

From: Corey Minyard <cminyard@mvista.com>

The mpsc serial driver needx to set the port's device tree element
to register properly.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
---

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);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-02-01 19:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-01 19:37 [PATCH] powerpc: Set the port device in the mpsc serial driver Corey Minyard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox