aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorDaniel Lezcano <[email protected]>2022-08-09 10:56:27 +0200
committerDaniel Lezcano <[email protected]>2022-08-17 14:09:37 +0200
commit9d6792df07367aab42009d2b24c62c11a5968ee3 (patch)
tree45147eda9efb6d2ae2f0e330d9fd2d6082f28831 /tools/perf/scripts/python/check-perf-trace.py
parent45b8850b3d3071d5ea9e19ad4a29ad5f0b5d1ec1 (diff)
thermal/of: Return -ENODEV instead of -EINVAL if registration fails
The previous version of the OF code was returning -ENODEV if no thermal zones description was found or if the lookup of the sensor in the thermal zones was not found. The backend drivers are expecting this return value as an information about skipping the sensor initialization and considered as normal. Fix the return value by replacing -EINVAL by -ENODEV and remove the error message as this missing is not considered as an error. Fixes: 3bd52ac87347 ("thermal/of: Rework the thermal device tree initialization") Signed-off-by: Daniel Lezcano <[email protected]> Tested-by: Michael Walle <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions