summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@st.com>2012-02-01 11:42:22 +0100
committerVinod Koul <vinod.koul@linux.intel.com>2012-02-22 13:45:38 +0100
commit6c618c9de5f2b4b43c30c6203869620bec6ed929 (patch)
tree53c0ae0808ee6d32e8a9d1fe256db4df66fb48c6 /drivers
parentdmaengine/dw_dmac: Don't use magic number for total number of channels (diff)
downloadlinux-6c618c9de5f2b4b43c30c6203869620bec6ed929.tar.xz
linux-6c618c9de5f2b4b43c30c6203869620bec6ed929.zip
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/dma/dw_dmac.c2
1 files changed, 1 insertions, 1 deletions
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;