Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ef44e10e authored by Deepak Katragadda's avatar Deepak Katragadda Committed by Gerrit - the friendly Code Review server
Browse files

clk: qcom: Change the init level for the clock drivers to subsys



The current init level of core for the clock drivers makes the
drivers probe slower since the mailbox and regulator drivers
that the clock drivers are dependent on have an arch init level.
The clock driver probe gets deferred as a result and is scheduled
to much later. Change the initcall level for the clock drivers to
subsys instead to make the probes happen sooner.

Change-Id: Icd304b6d3d8795b6b6868c2472cf4dc07ed82ac8
Signed-off-by: default avatarDeepak Katragadda <dkatraga@codeaurora.org>
parent 11f73a0c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2059,7 +2059,7 @@ static int __init cam_cc_sdm845_init(void)
{
	return platform_driver_register(&cam_cc_sdm845_driver);
}
core_initcall(cam_cc_sdm845_init);
subsys_initcall(cam_cc_sdm845_init);

static void __exit cam_cc_sdm845_exit(void)
{
+1 −1
Original line number Diff line number Diff line
@@ -3455,7 +3455,7 @@ static int __init clk_cpu_osm_init(void)
{
	return platform_driver_register(&clk_cpu_osm_driver);
}
arch_initcall(clk_cpu_osm_init);
subsys_initcall(clk_cpu_osm_init);

static void __exit clk_cpu_osm_exit(void)
{
+1 −1
Original line number Diff line number Diff line
@@ -451,7 +451,7 @@ static int __init clk_rpmh_init(void)
{
	return platform_driver_register(&clk_rpmh_driver);
}
core_initcall(clk_rpmh_init);
subsys_initcall(clk_rpmh_init);

static void __exit clk_rpmh_exit(void)
{
+1 −1
Original line number Diff line number Diff line
@@ -1130,7 +1130,7 @@ static int __init disp_cc_sdm845_init(void)
{
	return platform_driver_register(&disp_cc_sdm845_driver);
}
core_initcall(disp_cc_sdm845_init);
subsys_initcall(disp_cc_sdm845_init);

static void __exit disp_cc_sdm845_exit(void)
{
+1 −1
Original line number Diff line number Diff line
@@ -3856,7 +3856,7 @@ static int __init gcc_sdm845_init(void)
{
	return platform_driver_register(&gcc_sdm845_driver);
}
core_initcall(gcc_sdm845_init);
subsys_initcall(gcc_sdm845_init);

static void __exit gcc_sdm845_exit(void)
{
Loading