diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-07-30 04:09:11 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2013-08-13 07:26:41 -0400 |
commit | d4adcc0160404c3237fe6ffa09dd2dd039dd3975 (patch) | |
tree | aa9d7b76f16d21b38ffb8dbfe3c12986b0fd97f9 /drivers/dma/sh/shdma-of.c | |
parent | 696b4ff8b2e6fd3f01c9acf6687ec4660143b614 (diff) |
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.c | 2 |
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, | |||
42 | 42 | ||
43 | static int shdma_of_probe(struct platform_device *pdev) | 43 | static int shdma_of_probe(struct platform_device *pdev) |
44 | { | 44 | { |
45 | const struct of_dev_auxdata *lookup = pdev->dev.platform_data; | 45 | const struct of_dev_auxdata *lookup = dev_get_platdata(&pdev->dev); |
46 | int ret; | 46 | int ret; |
47 | 47 | ||
48 | if (!lookup) | 48 | if (!lookup) |