]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
powerpc/mpsc: Set the port device in the mpsc serial driver
authorCorey Minyard <cminyard@mvista.com>
Mon, 1 Feb 2010 09:37:46 +0000 (09:37 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 7 Apr 2010 04:12:36 +0000 (14:12 +1000)
The mpsc serial driver needx to set the port's device tree element
to register properly.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
drivers/serial/mpsc.c

index 55e113a0be0332631f500e36ca560441db63092d..6a9c6605666a103d8ae45f254537775796f8bb0d 100644 (file)
@@ -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);