Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6c618c9d authored by Viresh Kumar's avatar Viresh Kumar Committed by Vinod Koul
Browse files

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: default avatarViresh Kumar <viresh.kumar@st.com>
Signed-off-by: default avatarVinod Koul <vinod.koul@linux.intel.com>
parent e8d9f875
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;