Merge tag 'thermal-v6.4-rc1-1' of ssh://gitolite.kernel.org/pub/scm/linux/kernel...
[platform/kernel/linux-starfive.git] / drivers / thermal / cpufreq_cooling.c
index 65ef08b..e2cc7bd 100644 (file)
@@ -633,7 +633,7 @@ of_cpufreq_cooling_register(struct cpufreq_policy *policy)
                return NULL;
        }
 
-       if (of_find_property(np, "#cooling-cells", NULL)) {
+       if (of_property_present(np, "#cooling-cells")) {
                struct em_perf_domain *em = em_cpu_get(policy->cpu);
 
                cdev = __cpufreq_cooling_register(np, policy, em);