iommu/omap: Remove refcount field from omap_iommu object
authorSuman Anna <s-anna@ti.com>
Wed, 22 Oct 2014 22:22:19 +0000 (17:22 -0500)
committerJoerg Roedel <jroedel@suse.de>
Thu, 23 Oct 2014 12:32:25 +0000 (14:32 +0200)
commit2088ecba93f68252464b95375d80a12fe723ba5e
tree7bda9073a94f94caadcb72c92169fc5c1599e0dc
parentf114040e3ea6e07372334ade75d1ee0775c355e1
iommu/omap: Remove refcount field from omap_iommu object

The refcount field in omap_iommu object is primarily used to check
if an IOMMU device has already been enabled, but this is already
implicit in the omap_iommu_attach_dev() which ensures that only
a single device can attach to an IOMMU. This field is redundant,
and so has been cleaned up.

Signed-off-by: Suman Anna <s-anna@ti.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/omap-iommu.c
drivers/iommu/omap-iommu.h