diff options
author | Kiran Padwal <kiran.padwal@smartplayin.com> | 2014-10-30 02:25:11 -0400 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2014-11-04 09:03:39 -0500 |
commit | 263bc3fd6a8e50dc3ef423f36a1ec9cd951a76b8 (patch) | |
tree | 5be8791bbf27e12d0fc016aa489869f9a95ce136 /drivers/iommu | |
parent | c72acf69e2c0d884023296d0cceb16f3e75c09d9 (diff) |
iommu/msm: Use dev_get_platdata()
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly.
Signed-off-by: Kiran Padwal <kiran.padwal@smartplayin.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu')
-rw-r--r-- | drivers/iommu/msm_iommu_dev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iommu/msm_iommu_dev.c b/drivers/iommu/msm_iommu_dev.c index 9574d217227c..b6d01f97e537 100644 --- a/drivers/iommu/msm_iommu_dev.c +++ b/drivers/iommu/msm_iommu_dev.c | |||
@@ -131,7 +131,7 @@ static int msm_iommu_probe(struct platform_device *pdev) | |||
131 | struct clk *iommu_clk; | 131 | struct clk *iommu_clk; |
132 | struct clk *iommu_pclk; | 132 | struct clk *iommu_pclk; |
133 | struct msm_iommu_drvdata *drvdata; | 133 | struct msm_iommu_drvdata *drvdata; |
134 | struct msm_iommu_dev *iommu_dev = pdev->dev.platform_data; | 134 | struct msm_iommu_dev *iommu_dev = dev_get_platdata(&pdev->dev); |
135 | void __iomem *regs_base; | 135 | void __iomem *regs_base; |
136 | int ret, irq, par; | 136 | int ret, irq, par; |
137 | 137 | ||
@@ -263,7 +263,7 @@ static int msm_iommu_remove(struct platform_device *pdev) | |||
263 | 263 | ||
264 | static int msm_iommu_ctx_probe(struct platform_device *pdev) | 264 | static int msm_iommu_ctx_probe(struct platform_device *pdev) |
265 | { | 265 | { |
266 | struct msm_iommu_ctx_dev *c = pdev->dev.platform_data; | 266 | struct msm_iommu_ctx_dev *c = dev_get_platdata(&pdev->dev); |
267 | struct msm_iommu_drvdata *drvdata; | 267 | struct msm_iommu_drvdata *drvdata; |
268 | struct msm_iommu_ctx_drvdata *ctx_drvdata; | 268 | struct msm_iommu_ctx_drvdata *ctx_drvdata; |
269 | int i, ret; | 269 | int i, ret; |