]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/cpufreq/cpufreq-dt.c
cpufreq-dt: pass 'policy->related_cpus' to of_cpufreq_cooling_register()
[karo-tx-linux.git] / drivers / cpufreq / cpufreq-dt.c
index 8cba13df5f289d0e8fb0b5744944d665b4e2c692..7374fc4b6bb3d48b25824b5343278b70490e4889 100644 (file)
@@ -274,7 +274,7 @@ static int cpufreq_init(struct cpufreq_policy *policy)
         * thermal DT code takes care of matching them.
         */
        if (of_find_property(np, "#cooling-cells", NULL)) {
-               cdev = of_cpufreq_cooling_register(np, cpu_present_mask);
+               cdev = of_cpufreq_cooling_register(np, policy->related_cpus);
                if (IS_ERR(cdev))
                        dev_err(cpu_dev,
                                "running cpufreq without cooling device: %ld\n",