diff options
author | Robin Murphy <robin.murphy@arm.com> | 2018-01-09 19:17:27 +0300 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2018-01-17 17:25:50 +0300 |
commit | b0c560f7d8a4b333bcc18f692d0af0d5cca90fe2 (patch) | |
tree | 3d75ddff23241d48a2b4335a18fe827d6ba3b567 /include/linux/of_iommu.h | |
parent | e7747d88e05eabed6fd921c3636a9d1f5b4f754f (diff) | |
download | linux-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.h | 5 |
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 */ |