iommu/omap: Store iommu_dev pointer in arch_data
authorJoerg Roedel <jroedel@suse.de>
Wed, 12 Apr 2017 05:21:29 +0000 (00:21 -0500)
committerJoerg Roedel <jroedel@suse.de>
Thu, 20 Apr 2017 14:33:58 +0000 (16:33 +0200)
commitede1c2e7d4dc49fb1591e1754db9d53fabbd4b8b
tree046f68f855475742e265186dc82ad921f0532a9e
parente73b7afe4e8ca5ec4304a9e1d5009755a85fff91
iommu/omap: Store iommu_dev pointer in arch_data

Instead of finding the matching IOMMU for a device using
string comparision functions, store the pointer to the
iommu_dev in arch_data during the omap_iommu_add_device
callback and reset it during the omap_iommu_remove_device
callback functions.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
[s-anna@ti.com: few minor cleanups]
Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/omap-iommu.c
drivers/iommu/omap-iommu.h