Skip to content
Commit 043e4652 authored by Devendra Naga's avatar Devendra Naga Committed by Zhang Rui
Browse files

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: default avatarDevendra Naga <devendra.aaru@gmail.com>
Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
parent fb84d990
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment