commit | 043e4652bf3378883e7c0db38fa47fa8e2558f9c | [log] [tgz] |
---|---|---|
author | Devendra Naga <devendra.aaru@gmail.com> | Mon Mar 04 16:52:48 2013 +0000 |
committer | Zhang Rui <rui.zhang@intel.com> | Mon Mar 11 23:09:29 2013 +0800 |
tree | f1d56f2f084e3c0c64fe0f6b41d56bd57d074502 | |
parent | fb84d9907f0ff0e3f7d70d55039ddf0f78d2a472 [diff] |
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>