aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorJavi Merino <[email protected]>2014-12-17 11:11:24 +0000
committerEduardo Valentin <[email protected]>2014-12-17 09:00:04 -0400
commit503ccc3fec4a56cdcfedc507cd1ea0d85e1fbfa2 (patch)
tree1d2e39ee5a9eb3bf24f02fa9eb8754826ee57859 /lib/mpi/mpiutil.c
parent2d2e95ea8f124869b96ad929d1701bd64844a06a (diff)
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 <[email protected]> Cc: Eduardo Valentin <[email protected]> Signed-off-by: Javi Merino <[email protected]> Signed-off-by: Eduardo Valentin <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions