From: Cyril Roelandt Date: Wed, 12 Dec 2012 00:24:50 +0000 (+0100) Subject: staging: omap-thermal: fix error check in omap_thermal_expose_sensor() and in omap_th... X-Git-Tag: v3.9-rc1~127^2~503 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac6a98d452baa4f9acae7c2238f6626bae8283ff;p=pandora-kernel.git staging: omap-thermal: fix error check in omap_thermal_expose_sensor() and in omap_thermal_register_cpu_cooling(). The omap_bandgap_get_sensor_data() function returns ERR_PTR(), so we need to use IS_ERR() rather than a NULL check. Signed-off-by: Cyril Roelandt Acked-by: Eduardo Valentin Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed