summaryrefslogtreecommitdiff
path: root/drivers/iommu/mtk_iommu.h
diff options
context:
space:
mode:
authorJoerg Roedel <jroedel@suse.de>2017-02-03 14:57:32 +0300
committerJoerg Roedel <jroedel@suse.de>2017-02-10 15:44:57 +0300
commitb16c0170b53cfbf50db6cd60a427b52b0602b882 (patch)
treeb7a2b58e466c6a4fade9684045fb3ed5cfcc44b2 /drivers/iommu/mtk_iommu.h
parent42df43b36163ed7d0ab13992e411093252903273 (diff)
downloadlinux-b16c0170b53cfbf50db6cd60a427b52b0602b882.tar.xz
iommu/mediatek: Make use of iommu_device_register interface
Register individual Mediatek IOMMUs to the iommu core and add sysfs entries. Cc: Matthias Brugger <matthias.bgg@gmail.com> Cc: linux-arm-kernel@lists.infradead.org Cc: linux-mediatek@lists.infradead.org Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/mtk_iommu.h')
-rw-r--r--drivers/iommu/mtk_iommu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/iommu/mtk_iommu.h b/drivers/iommu/mtk_iommu.h
index 50177f738e4e..2a28eadeea0e 100644
--- a/drivers/iommu/mtk_iommu.h
+++ b/drivers/iommu/mtk_iommu.h
@@ -47,6 +47,8 @@ struct mtk_iommu_data {
struct iommu_group *m4u_group;
struct mtk_smi_iommu smi_imu; /* SMI larb iommu info */
bool enable_4GB;
+
+ struct iommu_device iommu;
};
static inline int compare_of(struct device *dev, void *data)