]> git.baikalelectronics.ru Git - kernel.git/commit
thermal: exynos_thermal: return a proper error code while thermal_zone_device_registe...
authorDevendra Naga <devendra.aaru@gmail.com>
Mon, 4 Mar 2013 16:52:48 +0000 (16:52 +0000)
committerZhang Rui <rui.zhang@intel.com>
Mon, 11 Mar 2013 15:09:29 +0000 (23:09 +0800)
commitf6779f826daf265b4aa48fbb35811ce520d7e883
treef1d56f2f084e3c0c64fe0f6b41d56bd57d074502
parentd0aac994cb848962752e367d471b8e3674ce6871
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 <devendra.aaru@gmail.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/exynos_thermal.c