mirror of
https://github.com/openwrt/openwrt.git
synced 2026-10-14 04:28:41 +04:00
The AN7583 thermal provider declares #thermal-sensor-cells as zero, so
its thermal zone must reference it without an additional sensor ID.
The extra zero is parsed as another phandle and makes thermal zone lookup
fail with -ENOENT. This also prevents unrelated hwmon sensors using
HWMON_C_REGISTER_TZ from probing, even when they are not referenced by a
thermal zone.
Drop the invalid sensor ID from the CPU thermal zone reference.
Signed-off-by: Robert Marko <robert.marko@sartura.hr>
(cherry picked from commit 9550b20e42)
Link: https://github.com/openwrt/openwrt/pull/25090
Signed-off-by: Robert Marko <robimarko@gmail.com>