]> Git Repo - linux.git/commit
thermal: exynos_thermal: return a proper error code while thermal_zone_device_registe...
authorDevendra Naga <[email protected]>
Mon, 4 Mar 2013 16:52:48 +0000 (16:52 +0000)
committerZhang Rui <[email protected]>
Mon, 11 Mar 2013 15:09:29 +0000 (23:09 +0800)
commit043e4652bf3378883e7c0db38fa47fa8e2558f9c
treef1d56f2f084e3c0c64fe0f6b41d56bd57d074502
parentfb84d9907f0ff0e3f7d70d55039ddf0f78d2a472
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 <[email protected]>
Signed-off-by: Zhang Rui <[email protected]>
drivers/thermal/exynos_thermal.c
This page took 0.052009 seconds and 4 git commands to generate.