Skip to content

Commit a6fda0f

Browse files
pinchartljoergroedel
authored andcommitted
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>
1 parent 7d68277 commit a6fda0f

2 files changed

Lines changed: 0 additions & 11 deletions

File tree

‎drivers/iommu/omap-iommu.c‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -893,19 +893,11 @@ static struct omap_iommu *omap_iommu_attach(const char *name, u32 *iopgd)
893893
goto err_enable;
894894
flush_iotlb_all(obj);
895895

896-
if (!try_module_get(obj->owner)) {
897-
err = -ENODEV;
898-
goto err_module;
899-
}
900-
901896
spin_unlock(&obj->iommu_lock);
902897

903898
dev_dbg(obj->dev, "%s: %s\n", __func__, obj->name);
904899
return obj;
905900

906-
err_module:
907-
if (obj->refcount == 1)
908-
iommu_disable(obj);
909901
err_enable:
910902
obj->refcount--;
911903
spin_unlock(&obj->iommu_lock);
@@ -926,8 +918,6 @@ static void omap_iommu_detach(struct omap_iommu *obj)
926918
if (--obj->refcount == 0)
927919
iommu_disable(obj);
928920

929-
module_put(obj->owner);
930-
931921
obj->iopgd = NULL;
932922

933923
spin_unlock(&obj->iommu_lock);

‎drivers/iommu/omap-iommu.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ struct iotlb_entry {
2828

2929
struct omap_iommu {
3030
const char *name;
31-
struct module *owner;
3231
void __iomem *regbase;
3332
struct device *dev;
3433
void *isr_priv;

0 commit comments

Comments
 (0)