From: Corey Minyard Date: Mon, 1 Feb 2010 09:37:46 +0000 (+0000) Subject: powerpc/mpsc: Set the port device in the mpsc serial driver X-Git-Tag: v2.6.35-rc1~450^2~90 X-Git-Url: http://bbs.cooldavid.org/git/?a=commitdiff_plain;h=f467bc148d05a1465211102804858df9c667f8b9;p=net-next-2.6.git powerpc/mpsc: Set the port device in the mpsc serial driver The mpsc serial driver needx to set the port's device tree element to register properly. Signed-off-by: Corey Minyard Signed-off-by: Benjamin Herrenschmidt --- diff --git a/drivers/serial/mpsc.c b/drivers/serial/mpsc.c index 55e113a0be0..6a9c6605666 100644 --- a/drivers/serial/mpsc.c +++ b/drivers/serial/mpsc.c @@ -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);