Skip to content

Commit

Permalink
iommu/omap: Remove omap_iommu unused owner field
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Laurent Pinchart authored and Joerg Roedel committed Sep 25, 2014
1 parent 7d68277 commit a6fda0f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
10 changes: 0 additions & 10 deletions drivers/iommu/omap-iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down
1 change: 0 additions & 1 deletion drivers/iommu/omap-iommu.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ struct iotlb_entry {

struct omap_iommu {
const char *name;
struct module *owner;
void __iomem *regbase;
struct device *dev;
void *isr_priv;
Expand Down

0 comments on commit a6fda0f

Please sign in to comment.