summaryrefslogtreecommitdiffstats
path: root/drivers/iommu/omap-iommu.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2014-09-09 18:45:45 +0300
committerJoerg Roedel <jroedel@suse.de>2014-09-25 15:56:37 +0200
commita6fda0f586bb2c39e763a2ae5561e1f6ade8c3a8 (patch)
treea2474ae77d3f52a41fe93d0891d8f3da5d005769 /drivers/iommu/omap-iommu.c
parent7d6827748d54f1745314e4e582691e8c02b9b4af (diff)
downloadlinux-a6fda0f586bb2c39e763a2ae5561e1f6ade8c3a8.tar.gz
linux-a6fda0f586bb2c39e763a2ae5561e1f6ade8c3a8.tar.bz2
linux-a6fda0f586bb2c39e763a2ae5561e1f6ade8c3a8.zip
iommu/omap: Remove omap_iommu unused owner field
The owner field is never set. Remove it. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Suman Anna <s-anna@ti.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/omap-iommu.c')
-rw-r--r--drivers/iommu/omap-iommu.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/iommu/omap-iommu.c b/drivers/iommu/omap-iommu.c
index df579f8779cd..4b432c40580d 100644
--- a/drivers/iommu/omap-iommu.c
+++ b/drivers/iommu/omap-iommu.c
@@ -893,19 +893,11 @@ static struct omap_iommu *omap_iommu_attach(const char *name, u32 *iopgd)
goto err_enable;
flush_iotlb_all(obj);
- if (!try_module_get(obj->owner)) {
- err = -ENODEV;
- goto err_module;
- }
-
spin_unlock(&obj->iommu_lock);
dev_dbg(obj->dev, "%s: %s\n", __func__, obj->name);
return obj;
-err_module:
- if (obj->refcount == 1)
- iommu_disable(obj);
err_enable:
obj->refcount--;
spin_unlock(&obj->iommu_lock);
@@ -926,8 +918,6 @@ static void omap_iommu_detach(struct omap_iommu *obj)
if (--obj->refcount == 0)
iommu_disable(obj);
- module_put(obj->owner);
-
obj->iopgd = NULL;
spin_unlock(&obj->iommu_lock);