--- zzzz-none-000/linux-5.4.213/drivers/thermal/thermal_hwmon.h 2022-09-15 10:04:56.000000000 +0000 +++ miami-7690-761/linux-5.4.213/drivers/thermal/thermal_hwmon.h 2024-05-29 11:20:02.000000000 +0000 @@ -17,6 +17,7 @@ #ifdef CONFIG_THERMAL_HWMON int thermal_add_hwmon_sysfs(struct thermal_zone_device *tz); +int devm_thermal_add_hwmon_sysfs(struct thermal_zone_device *tz); void thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz); #else static inline int @@ -24,6 +25,12 @@ { return 0; } + +static inline int +devm_thermal_add_hwmon_sysfs(struct thermal_zone_device *tz) +{ + return 0; +} static inline void thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz)