diff options
author | Suman Anna <s-anna@ti.com> | 2014-10-22 18:22:33 -0400 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2014-10-23 08:33:48 -0400 |
commit | f24d9ad3fafd7c4ee47ec75947657d768873b6e4 (patch) | |
tree | 6876bcd3bef0f186deaed23f4b97dfe3f0b7db94 | |
parent | 4899a5636d535ba573a7e52b5ad7be1f886d40a3 (diff) |
iommu/omap: Reset the domain field upon detaching
The .domain field in omap_iommu struct is set properly when the
OMAP IOMMU device is attached to, but is never reset properly
on detach. Reset this properly so that the OMAP IOMMU debugfs
logic can depend on this field before allowing the debugfs
operations.
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>
-rw-r--r-- | drivers/iommu/omap-iommu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iommu/omap-iommu.c b/drivers/iommu/omap-iommu.c index 3dcaef068382..2ba321921f81 100644 --- a/drivers/iommu/omap-iommu.c +++ b/drivers/iommu/omap-iommu.c | |||
@@ -1206,6 +1206,7 @@ static void _omap_iommu_detach_dev(struct omap_iommu_domain *omap_domain, | |||
1206 | 1206 | ||
1207 | omap_domain->iommu_dev = arch_data->iommu_dev = NULL; | 1207 | omap_domain->iommu_dev = arch_data->iommu_dev = NULL; |
1208 | omap_domain->dev = NULL; | 1208 | omap_domain->dev = NULL; |
1209 | oiommu->domain = NULL; | ||
1209 | } | 1210 | } |
1210 | 1211 | ||
1211 | static void omap_iommu_detach_dev(struct iommu_domain *domain, | 1212 | static void omap_iommu_detach_dev(struct iommu_domain *domain, |