diff options
Diffstat (limited to 'drivers/tty/serial/mpsc.c')
-rw-r--r-- | drivers/tty/serial/mpsc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tty/serial/mpsc.c b/drivers/tty/serial/mpsc.c index bc24f4931670..fba52578d02f 100644 --- a/drivers/tty/serial/mpsc.c +++ b/drivers/tty/serial/mpsc.c | |||
@@ -1884,7 +1884,7 @@ static int mpsc_shared_drv_probe(struct platform_device *dev) | |||
1884 | if (dev->id == 0) { | 1884 | if (dev->id == 0) { |
1885 | if (!(rc = mpsc_shared_map_regs(dev))) { | 1885 | if (!(rc = mpsc_shared_map_regs(dev))) { |
1886 | pdata = (struct mpsc_shared_pdata *) | 1886 | pdata = (struct mpsc_shared_pdata *) |
1887 | dev->dev.platform_data; | 1887 | dev_get_platdata(&dev->dev); |
1888 | 1888 | ||
1889 | mpsc_shared_regs.MPSC_MRR_m = pdata->mrr_val; | 1889 | mpsc_shared_regs.MPSC_MRR_m = pdata->mrr_val; |
1890 | mpsc_shared_regs.MPSC_RCRR_m= pdata->rcrr_val; | 1890 | mpsc_shared_regs.MPSC_RCRR_m= pdata->rcrr_val; |
@@ -2025,7 +2025,7 @@ static void mpsc_drv_get_platform_data(struct mpsc_port_info *pi, | |||
2025 | { | 2025 | { |
2026 | struct mpsc_pdata *pdata; | 2026 | struct mpsc_pdata *pdata; |
2027 | 2027 | ||
2028 | pdata = (struct mpsc_pdata *)pd->dev.platform_data; | 2028 | pdata = (struct mpsc_pdata *)dev_get_platdata(&pd->dev); |
2029 | 2029 | ||
2030 | pi->port.uartclk = pdata->brg_clk_freq; | 2030 | pi->port.uartclk = pdata->brg_clk_freq; |
2031 | pi->port.iotype = UPIO_MEM; | 2031 | pi->port.iotype = UPIO_MEM; |