diff options
author | Corey Minyard <cminyard@mvista.com> | 2010-02-01 04:37:46 -0500 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2010-04-07 00:12:36 -0400 |
commit | f467bc148d05a1465211102804858df9c667f8b9 (patch) | |
tree | 875e3f76150b8601b9dd7402b7bbf4b85798e114 /drivers/serial | |
parent | 58706ef96fa10edad1ce492313c8314cd5916fbe (diff) |
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.c | 1 |
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) | |||
2071 | 2071 | ||
2072 | if (!(rc = mpsc_drv_map_regs(pi, dev))) { | 2072 | if (!(rc = mpsc_drv_map_regs(pi, dev))) { |
2073 | mpsc_drv_get_platform_data(pi, dev, dev->id); | 2073 | mpsc_drv_get_platform_data(pi, dev, dev->id); |
2074 | pi->port.dev = &dev->dev; | ||
2074 | 2075 | ||
2075 | if (!(rc = mpsc_make_ready(pi))) { | 2076 | if (!(rc = mpsc_make_ready(pi))) { |
2076 | spin_lock_init(&pi->tx_lock); | 2077 | spin_lock_init(&pi->tx_lock); |