aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2026-10-30 09:22:52 -0700
committerGuenter Roeck <linux@roeck-us.net>2026-11-02 07:00:05 -0800
commit4fc79634af8cdf734e0a633923ba4817e30d29ad (patch)
tree692659c767a52c3915806db7108aa1d1b02f7740 /scripts/Makefile.thinlto
parenthwmon: (pmbus) Release devres allocated memory after devm_thermal_of_zone_register error (diff)
hwmon: (pmbus) Fix return value check from thermal zone registration
The PMBus core used to call devm_thermal_zone_of_sensor_register() to register thermal zones. Commit 613ed3f676092 ("hwmon: pm_bus: core: Switch to new of thermal API") changed this to call devm_thermal_of_zone_register() instead. The code subsequently checks if the call failed because the thermal subsystem is not configured. devm_thermal_zone_of_sensor_register() used to return -ENODEV in this case. devm_thermal_of_zone_register() returns -ENOTSUPP. The code currently still checks for -ENOVEV. This results in driver instantiation failures if the thermal subsystem is disabled. Check for -ENOTSUPP to fix the problem. Keep checking for -ENODEV because this indicates that no thermal zone is configured for the sensor, which is acceptable for the driver and must not cause a registration failure. Fixes: 613ed3f676092 ("hwmon: pm_bus: core: Switch to new of thermal API") Cc: stable@vger.kernel.org Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions