diff options
author | Viresh Kumar <viresh.kumar@st.com> | 2012-02-01 05:42:22 -0500 |
---|---|---|
committer | Vinod Koul <vinod.koul@linux.intel.com> | 2012-02-22 07:45:38 -0500 |
commit | 6c618c9de5f2b4b43c30c6203869620bec6ed929 (patch) | |
tree | 53c0ae0808ee6d32e8a9d1fe256db4df66fb48c6 /drivers/dma | |
parent | e8d9f875c9b02bb56ba3bb44834ae81ba0e8efbc (diff) |
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/dma')
-rw-r--r-- | drivers/dma/dw_dmac.c | 2 |
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) | |||
1369 | int err; | 1369 | int err; |
1370 | int i; | 1370 | int i; |
1371 | 1371 | ||
1372 | pdata = pdev->dev.platform_data; | 1372 | pdata = dev_get_platdata(&pdev->dev); |
1373 | if (!pdata || pdata->nr_channels > DW_DMA_MAX_NR_CHANNELS) | 1373 | if (!pdata || pdata->nr_channels > DW_DMA_MAX_NR_CHANNELS) |
1374 | return -EINVAL; | 1374 | return -EINVAL; |
1375 | 1375 | ||