serial: use dev_get_platdata()
Use the wrapper function for retrieving the platform data instead of accessing dev->platform_data directly. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

父節點
e26439ce03
當前提交
574de559c1
@@ -1884,7 +1884,7 @@ static int mpsc_shared_drv_probe(struct platform_device *dev)
|
||||
if (dev->id == 0) {
|
||||
if (!(rc = mpsc_shared_map_regs(dev))) {
|
||||
pdata = (struct mpsc_shared_pdata *)
|
||||
dev->dev.platform_data;
|
||||
dev_get_platdata(&dev->dev);
|
||||
|
||||
mpsc_shared_regs.MPSC_MRR_m = pdata->mrr_val;
|
||||
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,
|
||||
{
|
||||
struct mpsc_pdata *pdata;
|
||||
|
||||
pdata = (struct mpsc_pdata *)pd->dev.platform_data;
|
||||
pdata = (struct mpsc_pdata *)dev_get_platdata(&pd->dev);
|
||||
|
||||
pi->port.uartclk = pdata->brg_clk_freq;
|
||||
pi->port.iotype = UPIO_MEM;
|
||||
|
Reference in New Issue
Block a user