From: Viresh Kumar Date: Wed, 1 Feb 2012 10:42:22 +0000 (+0530) Subject: dmaengine/dw_dmac: Use dev_get_platdata() instead of accessing dev directly X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=6c618c9de5f2b4b43c30c6203869620bec6ed929;p=sagit-ice-cold%2Fkernel_xiaomi_msm8998.git 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 Signed-off-by: Vinod Koul --- diff --git a/drivers/dma/dw_dmac.c b/drivers/dma/dw_dmac.c index 157739423734..f3aecb3c0343 100644 --- a/drivers/dma/dw_dmac.c +++ b/drivers/dma/dw_dmac.c @@ -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;