From: Eduardo Valentin Date: Fri, 15 Mar 2013 12:59:54 +0000 (-0400) Subject: staging: omap-thermal: fix error checking X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~137^2~639 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35b052a6c9a4de5eae6fee60663c9b6606651c1a;p=pandora-kernel.git staging: omap-thermal: fix error checking The omap_bandgap_get_sensor_data() function returns ERR_PTR(), but it can also return NULL, in case of initilization, so we need to use IS_ERR_OR_NULL() rather than only IS_ERR(). Signed-off-by: Eduardo Valentin Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed