thermal->state indicates the "thermal_support" property in the configuration.
If user doesn't want to use thermal monitor with "thermal_support=no",
thermal->state is 0 (PASS_OFF). It is not error when thermal->state is zero.
Just return zero value instead of error.
Change-Id: I04f76774afb3b811d56dc0ebfb3f0888541e649f
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
if (!res)
return -EINVAL;
if (res->thermal.state != PASS_ON)
- return -EINVAL;
+ return 0;
ret = pass_resmon_unregister_uevent(res, RESMON_SRC_THERMAL);
if (ret < 0) {