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: https://git.stricted.de/?a=commitdiff_plain;h=6c618c9de5f2b4b43c30c6203869620bec6ed929;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.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;