summaryrefslogtreecommitdiffstats
path: root/drivers/dma/sh/shdma-of.c
diff options
context:
space:
mode:
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 2acf7b62d6b..06473a05fe4 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;
ret = of_dma_controller_register(pdev->dev.of_node,