diff options
author | Robin Murphy <robin.murphy@arm.com> | 2018-01-09 17:17:27 +0100 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2018-01-17 15:25:50 +0100 |
commit | b0c560f7d8a4b333bcc18f692d0af0d5cca90fe2 (patch) | |
tree | 3d75ddff23241d48a2b4335a18fe827d6ba3b567 /drivers/iommu/of_iommu.c | |
parent | iommu/ipmmu-vmsa: Remove redundant of_iommu_init_fn hook (diff) | |
download | linux-b0c560f7d8a4b333bcc18f692d0af0d5cca90fe2.tar.xz linux-b0c560f7d8a4b333bcc18f692d0af0d5cca90fe2.zip |
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 'drivers/iommu/of_iommu.c')
-rw-r--r-- | drivers/iommu/of_iommu.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/iommu/of_iommu.c b/drivers/iommu/of_iommu.c index 50947ebb6d17..5c36a8b7656a 100644 --- a/drivers/iommu/of_iommu.c +++ b/drivers/iommu/of_iommu.c @@ -231,19 +231,3 @@ const struct iommu_ops *of_iommu_configure(struct device *dev, return ops; } - -static int __init of_iommu_init(void) -{ - struct device_node *np; - const struct of_device_id *match, *matches = &__iommu_of_table; - - for_each_matching_node_and_match(np, matches, &match) { - const of_iommu_init_fn init_fn = match->data; - - if (init_fn && init_fn(np)) - pr_err("Failed to initialise IOMMU %pOF\n", np); - } - - return 0; -} -postcore_initcall_sync(of_iommu_init); |