aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/cpufreq/cpufreq-dt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpufreq/cpufreq-dt.c b/drivers/cpufreq/cpufreq-dt.c
index 8cba13df5f28..7374fc4b6bb3 100644
--- a/drivers/cpufreq/cpufreq-dt.c
+++ b/drivers/cpufreq/cpufreq-dt.c
@@ -274,7 +274,7 @@ static int cpufreq_init(struct cpufreq_policy *policy)
274 * thermal DT code takes care of matching them. 274 * thermal DT code takes care of matching them.
275 */ 275 */
276 if (of_find_property(np, "#cooling-cells", NULL)) { 276 if (of_find_property(np, "#cooling-cells", NULL)) {
277 cdev = of_cpufreq_cooling_register(np, cpu_present_mask); 277 cdev = of_cpufreq_cooling_register(np, policy->related_cpus);
278 if (IS_ERR(cdev)) 278 if (IS_ERR(cdev))
279 dev_err(cpu_dev, 279 dev_err(cpu_dev,
280 "running cpufreq without cooling device: %ld\n", 280 "running cpufreq without cooling device: %ld\n",