summaryrefslogtreecommitdiffstats
path: root/drivers/serial
diff options
context:
space:
mode:
authorCorey Minyard2010-02-01 10:37:46 +0100
committerBenjamin Herrenschmidt2010-04-07 06:12:36 +0200
commitf467bc148d05a1465211102804858df9c667f8b9 (patch)
tree875e3f76150b8601b9dd7402b7bbf4b85798e114 /drivers/serial
parentpowerpc: Add a new zImage for maple using a different link address (diff)
downloadkernel-qcow2-linux-f467bc148d05a1465211102804858df9c667f8b9.tar.gz
kernel-qcow2-linux-f467bc148d05a1465211102804858df9c667f8b9.tar.xz
kernel-qcow2-linux-f467bc148d05a1465211102804858df9c667f8b9.zip
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 <cminyard@mvista.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'drivers/serial')
-rw-r--r--drivers/serial/mpsc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/serial/mpsc.c b/drivers/serial/mpsc.c
index 55e113a0be03..6a9c6605666a 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);