summaryrefslogtreecommitdiff
path: root/include/linux/of_iommu.h
diff options
context:
space:
mode:
authorRobin Murphy <robin.murphy@arm.com>2018-01-09 19:17:27 +0300
committerJoerg Roedel <jroedel@suse.de>2018-01-17 17:25:50 +0300
commitb0c560f7d8a4b333bcc18f692d0af0d5cca90fe2 (patch)
tree3d75ddff23241d48a2b4335a18fe827d6ba3b567 /include/linux/of_iommu.h
parente7747d88e05eabed6fd921c3636a9d1f5b4f754f (diff)
downloadlinux-b0c560f7d8a4b333bcc18f692d0af0d5cca90fe2.tar.xz
iommu: Clean up of_iommu_init_fn
Now that no more drivers rely on arbitrary early initialisation via an of_iommu_init_fn hook, let's clean up the redundant remnants. The IOMMU_OF_DECLARE() macro needs to remain for now, as the probe-deferral mechanism has no other nice way to detect built-in drivers before they have registered themselves, such that it can make the right decision. Reviewed-by: Sricharan R <sricharan@codeaurora.org> Signed-off-by: Robin Murphy <robin.murphy@arm.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'include/linux/of_iommu.h')
-rw-r--r--include/linux/of_iommu.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/linux/of_iommu.h b/include/linux/of_iommu.h
index cddfaff4d0b7..4fa654e4b5a9 100644
--- a/include/linux/of_iommu.h
+++ b/include/linux/of_iommu.h
@@ -34,9 +34,6 @@ static inline const struct iommu_ops *of_iommu_configure(struct device *dev,
extern struct of_device_id __iommu_of_table;
-typedef int (*of_iommu_init_fn)(struct device_node *);
-
-#define IOMMU_OF_DECLARE(name, compat, fn) \
- _OF_DECLARE(iommu, name, compat, fn, of_iommu_init_fn)
+#define IOMMU_OF_DECLARE(name, compat) OF_DECLARE_1(iommu, name, compat, NULL)
#endif /* __OF_IOMMU_H */