提交 6c618c9d 编写于 作者: V Viresh Kumar 提交者: Vinod Koul

dmaengine/dw_dmac: Use dev_get_platdata() instead of accessing dev directly

Use already defined function dev_get_platdata() instead of accessing
pdev->dev.data.
Signed-off-by: NViresh Kumar <viresh.kumar@st.com>
Signed-off-by: NVinod Koul <vinod.koul@linux.intel.com>
上级 e8d9f875
......@@ -1369,7 +1369,7 @@ static int __init dw_probe(struct platform_device *pdev)
int err;
int i;
pdata = pdev->dev.platform_data;
pdata = dev_get_platdata(&pdev->dev);
if (!pdata || pdata->nr_channels > DW_DMA_MAX_NR_CHANNELS)
return -EINVAL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册