diff options
author | Joerg Roedel <jroedel@suse.de> | 2017-04-12 07:21:29 +0200 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2017-04-20 16:33:58 +0200 |
commit | ede1c2e7d4dc49fb1591e1754db9d53fabbd4b8b (patch) | |
tree | 046f68f855475742e265186dc82ad921f0532a9e /drivers/iommu/omap-iommu.h | |
parent | iommu/omap: Move data structures to omap-iommu.h (diff) | |
download | linux-ede1c2e7d4dc49fb1591e1754db9d53fabbd4b8b.tar.xz linux-ede1c2e7d4dc49fb1591e1754db9d53fabbd4b8b.zip |
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>
Diffstat (limited to 'drivers/iommu/omap-iommu.h')
-rw-r--r-- | drivers/iommu/omap-iommu.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/iommu/omap-iommu.h b/drivers/iommu/omap-iommu.h index 3c33608f48ca..f81184b549ec 100644 --- a/drivers/iommu/omap-iommu.h +++ b/drivers/iommu/omap-iommu.h @@ -72,7 +72,6 @@ struct omap_iommu { /** * struct omap_iommu_arch_data - omap iommu private data - * @name: name of the iommu device * @iommu_dev: handle of the iommu device * * This is an omap iommu private data object, which binds an iommu user @@ -81,7 +80,6 @@ struct omap_iommu { * utilize omap-specific plumbing anymore. */ struct omap_iommu_arch_data { - const char *name; struct omap_iommu *iommu_dev; }; |