cpufreq: qcom-hw: Move to device_initcall
authorAmit Kucheria <amit.kucheria@linaro.org>
Thu, 10 Jan 2019 00:00:53 +0000 (05:30 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Fri, 8 Feb 2019 04:06:25 +0000 (09:36 +0530)
subsys_initcall causes problems registering the driver as a thermal
cooling device.

If "faster boot" is the main reason for doing subsys_initcall, this
should be handled in the bootloader or another boot constraint
framework.

Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/qcom-cpufreq-hw.c

index d83939a1b3d4cd7f4f12a70477eaced3e9bf487f..649dddd7274972cd3c98c1df6d052ca5637a261c 100644 (file)
@@ -296,7 +296,7 @@ static int __init qcom_cpufreq_hw_init(void)
 {
        return platform_driver_register(&qcom_cpufreq_hw_driver);
 }
-subsys_initcall(qcom_cpufreq_hw_init);
+device_initcall(qcom_cpufreq_hw_init);
 
 static void __exit qcom_cpufreq_hw_exit(void)
 {