diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-07-30 10:09:11 +0200 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2013-08-13 13:26:41 +0200 |
commit | d4adcc0160404c3237fe6ffa09dd2dd039dd3975 (patch) | |
tree | aa9d7b76f16d21b38ffb8dbfe3c12986b0fd97f9 /drivers/dma/imx-sdma.c | |
parent | dma: sirf: use NULL instead of 0 (diff) | |
download | linux-d4adcc0160404c3237fe6ffa09dd2dd039dd3975.tar.xz 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/imx-sdma.c')
-rw-r--r-- | drivers/dma/imx-sdma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index f45e0928852b..b331ebb4d1d5 100644 --- a/drivers/dma/imx-sdma.c +++ b/drivers/dma/imx-sdma.c @@ -1332,7 +1332,7 @@ static int __init sdma_probe(struct platform_device *pdev) int ret; int irq; struct resource *iores; - struct sdma_platform_data *pdata = pdev->dev.platform_data; + struct sdma_platform_data *pdata = dev_get_platdata(&pdev->dev); int i; struct sdma_engine *sdma; s32 *saddr_arr; |