Skip to contentSkip to conversation

iommu/core: fix build issue

PATCH New Ohad Ben-Cohen 1 participant 1 message Oct 10, 2011 IOMMU

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iommu/core: fix build issue

Fix this:

drivers/iommu/iommu.c: In function 'iommu_commit':
drivers/iommu/iommu.c:291: error: 'iommu_ops' undeclared (first use in this function)

---
 drivers/iommu/iommu.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/iommu/iommu.c +2 -2
index 909b0d2..a5131f1 100644
@@ -288,7 +288,7 @@ EXPORT_SYMBOL_GPL(iommu_unmap);
 
 void iommu_commit(struct iommu_domain *domain)
 {
-	if (iommu_ops->commit)
-		iommu_ops->commit(domain);
+	if (domain->ops->commit)
+		domain->ops->commit(domain);
 }
 EXPORT_SYMBOL_GPL(iommu_commit);
Signature · 1 line
1.7.4.1