drivers: iommu: Add flags to iommu_domain_alloc

Add the ability to pass flags into the iommu_domain_alloc
function to specify domain attributes.

Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
diff --git a/drivers/base/iommu.c b/drivers/base/iommu.c
index 6490bfe..1377e85 100644
--- a/drivers/base/iommu.c
+++ b/drivers/base/iommu.c
@@ -40,7 +40,7 @@
 }
 EXPORT_SYMBOL_GPL(iommu_found);
 
-struct iommu_domain *iommu_domain_alloc(void)
+struct iommu_domain *iommu_domain_alloc(int flags)
 {
 	struct iommu_domain *domain;
 	int ret;
@@ -49,7 +49,7 @@
 	if (!domain)
 		return NULL;
 
-	ret = iommu_ops->domain_init(domain);
+	ret = iommu_ops->domain_init(domain, flags);
 	if (ret)
 		goto out_free;