summaryrefslogtreecommitdiffstats
path: root/drivers/dma/sh/sudmac.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-07-30 17:09:11 +0900
committerVinod Koul <vinod.koul@intel.com>2013-08-13 16:56:41 +0530
commitd4adcc0160404c3237fe6ffa09dd2dd039dd3975 (patch)
treeaa9d7b76f16d21b38ffb8dbfe3c12986b0fd97f9 /drivers/dma/sh/sudmac.c
parent696b4ff8b2e6fd3f01c9acf6687ec4660143b614 (diff)
downloadlinux-d4adcc0160404c3237fe6ffa09dd2dd039dd3975.tar.bz2
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/sudmac.c')
-rw-r--r--drivers/dma/sh/sudmac.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dma/sh/sudmac.c b/drivers/dma/sh/sudmac.c
index e7c94bbddb53..c49441753d99 100644
--- a/drivers/dma/sh/sudmac.c
+++ b/drivers/dma/sh/sudmac.c
@@ -335,7 +335,7 @@ static const struct shdma_ops sudmac_shdma_ops = {
static int sudmac_probe(struct platform_device *pdev)
{
- struct sudmac_pdata *pdata = pdev->dev.platform_data;
+ struct sudmac_pdata *pdata = dev_get_platdata(&pdev->dev);
int err, i;
struct sudmac_device *su_dev;
struct dma_device *dma_dev;
@@ -373,7 +373,7 @@ static int sudmac_probe(struct platform_device *pdev)
return err;
/* platform data */
- su_dev->pdata = pdev->dev.platform_data;
+ su_dev->pdata = dev_get_platdata(&pdev->dev);
platform_set_drvdata(pdev, su_dev);