mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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: Viresh Kumar <viresh.kumar@st.com> Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
This commit is contained in:
parent
e8d9f875c9
commit
6c618c9de5
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue