aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/iop-adma.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-07-30 04:09:11 -0400
committerVinod Koul <vinod.koul@intel.com>2013-08-13 07:26:41 -0400
commitd4adcc0160404c3237fe6ffa09dd2dd039dd3975 (patch)
treeaa9d7b76f16d21b38ffb8dbfe3c12986b0fd97f9 /drivers/dma/iop-adma.c
parent696b4ff8b2e6fd3f01c9acf6687ec4660143b614 (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/iop-adma.c')
-rw-r--r--drivers/dma/iop-adma.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/dma/iop-adma.c b/drivers/dma/iop-adma.c
index cc727ec78c4e..dd8b44a56e5d 100644
--- a/drivers/dma/iop-adma.c
+++ b/drivers/dma/iop-adma.c
@@ -518,7 +518,7 @@ static int iop_adma_alloc_chan_resources(struct dma_chan *chan)
518 struct iop_adma_desc_slot *slot = NULL; 518 struct iop_adma_desc_slot *slot = NULL;
519 int init = iop_chan->slots_allocated ? 0 : 1; 519 int init = iop_chan->slots_allocated ? 0 : 1;
520 struct iop_adma_platform_data *plat_data = 520 struct iop_adma_platform_data *plat_data =
521 iop_chan->device->pdev->dev.platform_data; 521 dev_get_platdata(&iop_chan->device->pdev->dev);
522 int num_descs_in_pool = plat_data->pool_size/IOP_ADMA_SLOT_SIZE; 522 int num_descs_in_pool = plat_data->pool_size/IOP_ADMA_SLOT_SIZE;
523 523
524 /* Allocate descriptor slots */ 524 /* Allocate descriptor slots */
@@ -1351,7 +1351,7 @@ static int iop_adma_remove(struct platform_device *dev)
1351 struct iop_adma_device *device = platform_get_drvdata(dev); 1351 struct iop_adma_device *device = platform_get_drvdata(dev);
1352 struct dma_chan *chan, *_chan; 1352 struct dma_chan *chan, *_chan;
1353 struct iop_adma_chan *iop_chan; 1353 struct iop_adma_chan *iop_chan;
1354 struct iop_adma_platform_data *plat_data = dev->dev.platform_data; 1354 struct iop_adma_platform_data *plat_data = dev_get_platdata(&dev->dev);
1355 1355
1356 dma_async_device_unregister(&device->common); 1356 dma_async_device_unregister(&device->common);
1357 1357
@@ -1376,7 +1376,7 @@ static int iop_adma_probe(struct platform_device *pdev)
1376 struct iop_adma_device *adev; 1376 struct iop_adma_device *adev;
1377 struct iop_adma_chan *iop_chan; 1377 struct iop_adma_chan *iop_chan;
1378 struct dma_device *dma_dev; 1378 struct dma_device *dma_dev;
1379 struct iop_adma_platform_data *plat_data = pdev->dev.platform_data; 1379 struct iop_adma_platform_data *plat_data = dev_get_platdata(&pdev->dev);
1380 1380
1381 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 1381 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
1382 if (!res) 1382 if (!res)