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-Tag: v3.4-rc1~39^2~36 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6c618c9de5f2b4b43c30c6203869620bec6ed929;p=platform%2Fupstream%2Fkernel-adaptation-pc.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 1577394..f3aecb3 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;