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/timb_dma.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/timb_dma.c')
-rw-r--r-- | drivers/dma/timb_dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/timb_dma.c b/drivers/dma/timb_dma.c index 0ef43c136aa7..28af214fce04 100644 --- a/drivers/dma/timb_dma.c +++ b/drivers/dma/timb_dma.c | |||
@@ -669,7 +669,7 @@ static irqreturn_t td_irq(int irq, void *devid) | |||
669 | 669 | ||
670 | static int td_probe(struct platform_device *pdev) | 670 | static int td_probe(struct platform_device *pdev) |
671 | { | 671 | { |
672 | struct timb_dma_platform_data *pdata = pdev->dev.platform_data; | 672 | struct timb_dma_platform_data *pdata = dev_get_platdata(&pdev->dev); |
673 | struct timb_dma *td; | 673 | struct timb_dma *td; |
674 | struct resource *iomem; | 674 | struct resource *iomem; |
675 | int irq; | 675 | int irq; |