summaryrefslogtreecommitdiffstats
path: root/drivers/dma/sh/shdma-of.c
diff options
context:
space:
mode:
authorJingoo Han2013-07-30 10:09:11 +0200
committerVinod Koul2013-08-13 13:26:41 +0200
commitd4adcc0160404c3237fe6ffa09dd2dd039dd3975 (patch)
treeaa9d7b76f16d21b38ffb8dbfe3c12986b0fd97f9 /drivers/dma/sh/shdma-of.c
parentdma: sirf: use NULL instead of 0 (diff)
downloadkernel-qcow2-linux-d4adcc0160404c3237fe6ffa09dd2dd039dd3975.tar.gz
kernel-qcow2-linux-d4adcc0160404c3237fe6ffa09dd2dd039dd3975.tar.xz
kernel-qcow2-linux-d4adcc0160404c3237fe6ffa09dd2dd039dd3975.zip
dma: use dev_get_platdata()
Use the wrapper function for retrieving the platform data instead of accessing dev->platform_data directly. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/sh/shdma-of.c')
-rw-r--r--drivers/dma/sh/shdma-of.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/sh/shdma-of.c b/drivers/dma/sh/shdma-of.c
index 11bcb05cd79c..966aaab0b4d3 100644
--- a/drivers/dma/sh/shdma-of.c
+++ b/drivers/dma/sh/shdma-of.c
@@ -42,7 +42,7 @@ static struct dma_chan *shdma_of_xlate(struct of_phandle_args *dma_spec,
static int shdma_of_probe(struct platform_device *pdev)
{
- const struct of_dev_auxdata *lookup = pdev->dev.platform_data;
+ const struct of_dev_auxdata *lookup = dev_get_platdata(&pdev->dev);
int ret;
if (!lookup)