summaryrefslogtreecommitdiff
path: root/drivers/iommu/msm_iommu.h
diff options
context:
space:
mode:
authorJoerg Roedel <jroedel@suse.de>2017-02-02 18:52:34 +0100
committerJoerg Roedel <jroedel@suse.de>2017-02-10 13:44:57 +0100
commit42df43b36163ed7d0ab13992e411093252903273 (patch)
tree6d6adcc83c96ca415a944af283b99ca8ef583f5c /drivers/iommu/msm_iommu.h
parent9648cbc9625b67c91ed1aaf4b8b77f3f0c537496 (diff)
iommu/msm: Make use of iommu_device_register interface
Register the MSM IOMMUs to the iommu core and add sysfs entries for that driver. Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/msm_iommu.h')
-rw-r--r--drivers/iommu/msm_iommu.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/iommu/msm_iommu.h b/drivers/iommu/msm_iommu.h
index 4ca25d50d679..ae92d2779c42 100644
--- a/drivers/iommu/msm_iommu.h
+++ b/drivers/iommu/msm_iommu.h
@@ -19,6 +19,7 @@
#define MSM_IOMMU_H
#include <linux/interrupt.h>
+#include <linux/iommu.h>
#include <linux/clk.h>
/* Sharability attributes of MSM IOMMU mappings */
@@ -68,6 +69,8 @@ struct msm_iommu_dev {
struct list_head dom_node;
struct list_head ctx_list;
DECLARE_BITMAP(context_map, IOMMU_MAX_CBS);
+
+ struct iommu_device iommu;
};
/**