From: Javi Merino Date: Wed, 17 Dec 2014 11:11:24 +0000 (+0000) Subject: thermal: cpu_cooling: return ERR_PTR() for !CPU_THERMAL or !THERMAL_OF X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~349^2^2~1^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=503ccc3fec4a56cdcfedc507cd1ea0d85e1fbfa2;p=pandora-kernel.git 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 Cc: Eduardo Valentin Signed-off-by: Javi Merino Signed-off-by: Eduardo Valentin --- Reading git-diff-tree failed