summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@st.com>2012-02-01 16:12:22 +0530
committerVinod Koul <vinod.koul@linux.intel.com>2012-02-22 18:15:38 +0530
commit6c618c9de5f2b4b43c30c6203869620bec6ed929 (patch)
tree53c0ae0808ee6d32e8a9d1fe256db4df66fb48c6
parente8d9f875c9b02bb56ba3bb44834ae81ba0e8efbc (diff)
downloadlinux-3.10-6c618c9de5f2b4b43c30c6203869620bec6ed929.tar.gz
linux-3.10-6c618c9de5f2b4b43c30c6203869620bec6ed929.tar.bz2
linux-3.10-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>
-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 15773942373..f3aecb3c034 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;