Skip to content

Commit f5bf3c0

Browse files
committed
thermal: cpu_cooling: Remove pointless dependency on CONFIG_OF
The option CONFIG_CPU_THERMAL depends on CONFIG_OF in the Kconfig. It it pointless to check if CONFIG_OF is set in the header file as this is always true if CONFIG_CPU_THERMAL is true. Remove it. Signed-off-by: Daniel Lezcano <[email protected]> Acked-by: Viresh Kumar <[email protected]> Reviewed-by: Amit Kucheria <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 76bf653 commit f5bf3c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/linux/cpu_cooling.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ void cpufreq_cooling_unregister(struct thermal_cooling_device *cdev)
4747
}
4848
#endif /* CONFIG_CPU_THERMAL */
4949

50-
#if defined(CONFIG_THERMAL_OF) && defined(CONFIG_CPU_THERMAL)
50+
#ifdef CONFIG_CPU_THERMAL
5151
/**
5252
* of_cpufreq_cooling_register - create cpufreq cooling device based on DT.
5353
* @policy: cpufreq policy.
@@ -60,6 +60,6 @@ of_cpufreq_cooling_register(struct cpufreq_policy *policy)
6060
{
6161
return NULL;
6262
}
63-
#endif /* defined(CONFIG_THERMAL_OF) && defined(CONFIG_CPU_THERMAL) */
63+
#endif /* CONFIG_CPU_THERMAL */
6464

6565
#endif /* __CPU_COOLING_H__ */

0 commit comments

Comments
 (0)