Commit 5ce08112 authored by Martin Kepplinger's avatar Martin Kepplinger Committed by Angus Ainslie (Purism)

cpufreq: fix the build by correctly calling of_cpufreq_cooling_register()

Only when the cpufreq strategy is used, it gets defined in cpu_cooling.c

This has to be considered a workaround, fixing the build for the cpuidle
thermal driver.
parent 01907da6
......@@ -1468,8 +1468,10 @@ static int cpufreq_online(unsigned int cpu)
if (cpufreq_driver->ready)
cpufreq_driver->ready(policy);
#ifdef CONFIG_CPU_FREQ_THERMAL
if (cpufreq_thermal_control_enabled(cpufreq_driver))
policy->cdev = of_cpufreq_cooling_register(policy);
#endif
pr_debug("initialization complete\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment