airoha: fix AN7583 thermal sensor reference

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>
This commit is contained in:
Robert Marko authored and Robert Marko committed 2026-09-15 16:34:42 +02:00
1 parent bd2ac8e406
commit 9facdff6fb
1 file changed
+1 -1
+1 -1
View File
@@ -264,7 +264,7 @@
polling-delay-passive = <1000>;
polling-delay = <5000>;
thermal-sensors = <&thermal 0>;
thermal-sensors = <&thermal>;
trips {
cpu_hot: cpu-hot {