From afedb9d86650da1487ad5be2efc6a31a7ed362ab Mon Sep 17 00:00:00 2001 From: "Isaac J. Manjarres" Date: Fri, 1 Nov 2019 11:50:22 -0700 Subject: [PATCH] iommu/arm-smmu: Move the SMMU driver to subsys_initcall Change the initcall level for the SMMU driver to subsys_initcall so that the IOMMU devices get probed earlier in the bootup sequence. This helps reduce the number of probe retrials for client drivers that depend on an IOMMU. Change-Id: If49b41c9b63f2eaf75cd6b7460b1d4ffc10e56db Signed-off-by: Isaac J. Manjarres --- drivers/iommu/arm-smmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c index 74ed7dff7433..d73c3519ea63 100644 --- a/drivers/iommu/arm-smmu.c +++ b/drivers/iommu/arm-smmu.c @@ -4883,7 +4883,7 @@ static void __exit arm_smmu_exit(void) return platform_driver_unregister(&arm_smmu_driver); } -module_init(arm_smmu_init); +subsys_initcall(arm_smmu_init); module_exit(arm_smmu_exit); #define TCU_HW_VERSION_HLOS1 (0x18)