summaryrefslogtreecommitdiff
path: root/drivers/thermal/samsung/exynos_thermal_common.c
diff options
context:
space:
mode:
authorJavi Merino <javi.merino@arm.com>2014-12-17 14:11:24 +0300
committerEduardo Valentin <edubezval@gmail.com>2014-12-17 16:00:04 +0300
commit503ccc3fec4a56cdcfedc507cd1ea0d85e1fbfa2 (patch)
tree1d2e39ee5a9eb3bf24f02fa9eb8754826ee57859 /drivers/thermal/samsung/exynos_thermal_common.c
parent2d2e95ea8f124869b96ad929d1701bd64844a06a (diff)
downloadlinux-503ccc3fec4a56cdcfedc507cd1ea0d85e1fbfa2.tar.xz
thermal: cpu_cooling: return ERR_PTR() for !CPU_THERMAL or !THERMAL_OF
The documentation of of_cpufreq_cooling_register() and cpufreq_cooling_register() say that they return ERR_PTR() on error. Accordingly, callers only check for IS_ERR(). Therefore, make them return ERR_PTR(-ENOSYS) as is customary in the kernel when config options are missing. Cc: Zhang Rui <rui.zhang@intel.com> Cc: Eduardo Valentin <edubezval@gmail.com> Signed-off-by: Javi Merino <javi.merino@arm.com> Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Diffstat (limited to 'drivers/thermal/samsung/exynos_thermal_common.c')
0 files changed, 0 insertions, 0 deletions