]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
soc: qcom: Update init level to core_initcall() for cmd-db and rpmh-rsc
authorMaulik Shah <quic_mkshah@quicinc.com>
Sat, 17 Feb 2024 13:57:07 +0000 (19:27 +0530)
committerBjorn Andersson <andersson@kernel.org>
Sat, 16 Mar 2024 18:06:59 +0000 (13:06 -0500)
cmd-db and rpmh-rsc are used by clients like regulators, interconnects and
clocks for resource voting. These clients are in core_initcall() while
cmd-db and rpmh-rsc are in arch_initcall(). Update init level for these
drivers also to core_initcall() to avoid unnecessary probe defer during
boot up.

Signed-off-by: Maulik Shah <quic_mkshah@quicinc.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Link: https://lore.kernel.org/r/20240217-init_level-v1-1-bde9e11f8317@quicinc.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/soc/qcom/cmd-db.c
drivers/soc/qcom/rpmh-rsc.c

index a5fd68411bed587a9796615b65071558bde6fd75..c344107bc36c6ae47074e5960aa4fce4a1e67edf 100644 (file)
@@ -362,7 +362,7 @@ static int __init cmd_db_device_init(void)
 {
        return platform_driver_register(&cmd_db_dev_driver);
 }
-arch_initcall(cmd_db_device_init);
+core_initcall(cmd_db_device_init);
 
 MODULE_DESCRIPTION("Qualcomm Technologies, Inc. Command DB Driver");
 MODULE_LICENSE("GPL v2");
index a021dc71807be04571c2a661fda4a58434ba254b..c4c7aad957e6b5954b5440b9efc817ac92110d12 100644 (file)
@@ -1154,7 +1154,7 @@ static int __init rpmh_driver_init(void)
 {
        return platform_driver_register(&rpmh_driver);
 }
-arch_initcall(rpmh_driver_init);
+core_initcall(rpmh_driver_init);
 
 MODULE_DESCRIPTION("Qualcomm Technologies, Inc. RPMh Driver");
 MODULE_LICENSE("GPL v2");