aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iommu
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iommu')
-rw-r--r--drivers/iommu/msm_iommu_dev.c2
-rw-r--r--drivers/iommu/omap-iommu.c2
2 files changed, 0 insertions, 4 deletions
diff --git a/drivers/iommu/msm_iommu_dev.c b/drivers/iommu/msm_iommu_dev.c
index 0a1c9626aa9e..08ba4972da9d 100644
--- a/drivers/iommu/msm_iommu_dev.c
+++ b/drivers/iommu/msm_iommu_dev.c
@@ -282,7 +282,6 @@ static int msm_iommu_remove(struct platform_device *pdev)
282 clk_put(drv->pclk); 282 clk_put(drv->pclk);
283 memset(drv, 0, sizeof(*drv)); 283 memset(drv, 0, sizeof(*drv));
284 kfree(drv); 284 kfree(drv);
285 platform_set_drvdata(pdev, NULL);
286 } 285 }
287 return 0; 286 return 0;
288} 287}
@@ -366,7 +365,6 @@ static int msm_iommu_ctx_remove(struct platform_device *pdev)
366 if (drv) { 365 if (drv) {
367 memset(drv, 0, sizeof(struct msm_iommu_ctx_drvdata)); 366 memset(drv, 0, sizeof(struct msm_iommu_ctx_drvdata));
368 kfree(drv); 367 kfree(drv);
369 platform_set_drvdata(pdev, NULL);
370 } 368 }
371 return 0; 369 return 0;
372} 370}
diff --git a/drivers/iommu/omap-iommu.c b/drivers/iommu/omap-iommu.c
index 0ba3766240d5..bcd78a720630 100644
--- a/drivers/iommu/omap-iommu.c
+++ b/drivers/iommu/omap-iommu.c
@@ -1008,8 +1008,6 @@ static int omap_iommu_remove(struct platform_device *pdev)
1008 struct resource *res; 1008 struct resource *res;
1009 struct omap_iommu *obj = platform_get_drvdata(pdev); 1009 struct omap_iommu *obj = platform_get_drvdata(pdev);
1010 1010
1011 platform_set_drvdata(pdev, NULL);
1012
1013 iopgtable_clear_entry_all(obj); 1011 iopgtable_clear_entry_all(obj);
1014 1012
1015 irq = platform_get_irq(pdev, 0); 1013 irq = platform_get_irq(pdev, 0);