firmware: qcom: scm: Change initcall to subsys
authorAndy Gross <andy.gross@linaro.org>
Sat, 2 Jul 2016 04:04:03 +0000 (23:04 -0500)
committerAndy Gross <andy.gross@linaro.org>
Tue, 5 Jul 2016 21:29:25 +0000 (16:29 -0500)
The patch changes the initcall for SCM to use subsys_initcall
instead of arch_initcall.  This corrects the order so that we don't
probe defer when trying to get clks which causes issues later when
the spm driver makes calls to qcom_set_warm_boot_addr().

The order became an issue due to the changes to use arch_initcall_sync
for of_platform_default_populate_init().

Signed-off-by: Andy Gross <andy.gross@linaro.org>
drivers/firmware/qcom_scm.c

index 89c3775fb69bc293d447f6116ed4bb97857b7a37..e64a501adbf486308790a1eb8ccbe237eecfc596 100644 (file)
@@ -415,7 +415,7 @@ static int __init qcom_scm_init(void)
        return platform_driver_register(&qcom_scm_driver);
 }
 
-arch_initcall(qcom_scm_init);
+subsys_initcall(qcom_scm_init);
 
 static void __exit qcom_scm_exit(void)
 {