Skip to content

Commit b418bab

Browse files
idlethreaddlezcano
authored andcommitted
clk: qcom: Initialize clock drivers earlier
Initialize the clock drivers on sdm845 and qcs404 in core_initcall so we can have earlier access to cpufreq during booting. Signed-off-by: Amit Kucheria <[email protected]> Acked-by: Stephen Boyd <[email protected]> Acked-by: Viresh Kumar <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/75ae9c3a1c0e69b95818c6ffe7181fdeaaf2d70e.1571656015.git.amit.kucheria@linaro.org
1 parent 57db08f commit b418bab

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

drivers/clk/qcom/clk-rpmh.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ static int __init clk_rpmh_init(void)
487487
{
488488
return platform_driver_register(&clk_rpmh_driver);
489489
}
490-
subsys_initcall(clk_rpmh_init);
490+
core_initcall(clk_rpmh_init);
491491

492492
static void __exit clk_rpmh_exit(void)
493493
{

drivers/clk/qcom/gcc-qcs404.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2855,7 +2855,7 @@ static int __init gcc_qcs404_init(void)
28552855
{
28562856
return platform_driver_register(&gcc_qcs404_driver);
28572857
}
2858-
subsys_initcall(gcc_qcs404_init);
2858+
core_initcall(gcc_qcs404_init);
28592859

28602860
static void __exit gcc_qcs404_exit(void)
28612861
{

drivers/clk/qcom/gcc-sdm845.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3628,7 +3628,7 @@ static int __init gcc_sdm845_init(void)
36283628
{
36293629
return platform_driver_register(&gcc_sdm845_driver);
36303630
}
3631-
subsys_initcall(gcc_sdm845_init);
3631+
core_initcall(gcc_sdm845_init);
36323632

36333633
static void __exit gcc_sdm845_exit(void)
36343634
{

0 commit comments

Comments
 (0)