]> git.ipfire.org Git - thirdparty/openwrt.git/commit
thermal: airoha: fix wrong variable in AN7583 error check 23781/head
authorWayen Yan <win847@gmail.com>
Sun, 14 Jun 2026 14:25:37 +0000 (22:25 +0800)
committerJonas Jelonek <jelonek.jonas@gmail.com>
Thu, 18 Jun 2026 20:09:17 +0000 (22:09 +0200)
commit78f8876830a22b667585f093adf3b9c6089e9f0d
treec6850277833104f5f529951699e74b1f2008ea1a
parent6fde98771191f3cf7dc12b150354e64d7c477eff
thermal: airoha: fix wrong variable in AN7583 error check

In an7583_thermal_probe(), the code assigns priv->chip_scu from
device_node_to_regmap() but then checks IS_ERR(priv->map)
and returns PTR_ERR(priv->map). The variable priv->map is
not assigned in this function, so the error check uses a
different variable than what was actually assigned.

This should check chip_scu instead of map.

Fixes: 5891a9e5fbdf ("thermal/drivers: airoha: Add support for AN7583")
Signed-off-by: Wayen Yan <win847@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/23781
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
target/linux/airoha/patches-6.18/402-05-thermal-drivers-airoha-Add-support-for-AN7583.patch