Skip to content

Commit

Permalink
powerpc/mpsc: Set the port device in the mpsc serial driver
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Corey Minyard authored and Benjamin Herrenschmidt committed Apr 7, 2010
1 parent 58706ef commit f467bc1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/serial/mpsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f467bc1

Please sign in to comment.