From: Devendra Naga Date: Mon, 4 Mar 2013 16:52:48 +0000 (+0000) Subject: thermal: exynos_thermal: return a proper error code while thermal_zone_device_registe... X-Git-Tag: v3.9-rc4~17^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=043e4652bf3378883e7c0db38fa47fa8e2558f9c;p=pandora-kernel.git thermal: exynos_thermal: return a proper error code while thermal_zone_device_register fail. we are returning EINVAL while the thermal_zone_device_register function fail. instead we can use the return value from the thermal_zone_device_register by using PTR_ERR. Signed-off-by: Devendra Naga Signed-off-by: Zhang Rui --- Reading git-diff-tree failed