浏览代码

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>
Corey Minyard 15 年之前
父节点
当前提交
f467bc148d
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/serial/mpsc.c

+ 1 - 0
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);