Re: [PATCH 2/4] thermal/of: Return -ENODEV instead of -EINVAL if registration fails

From: Michael Walle
Date: Mon Aug 08 2022 - 15:03:07 EST


Am 2022-08-08 20:09, schrieb Daniel Lezcano:
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

Signed-off-by: Daniel Lezcano <daniel.lezcano@xxxxxxxxxx>

Tested-by: Michael Walle <michael@xxxxxxxx>