diff options
| author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2026-04-22 17:39:19 +0200 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2026-05-12 21:45:46 +0200 |
| commit | 9e12b7be7f051f639b79a8c449c81519c975cd50 (patch) | |
| tree | a0a1eeec0fa7d0eb2f54e393f24710b6cfa3271c /mm/tests/git@git.tavy.me:linux.git | |
| parent | 8c5281c91e1f6c719ee6db9e18ef5efb618425e7 (diff) | |
thermal: core: Simplify unregistration of governors
Thermal governors are only unregistered in the thermal_init() error
path and they actually are only deleted from thermal_governor_list.
Put the entire code needed to do that to thermal_unregister_governors()
and rearrange thermal_init() to call that function also when
thermal_register_governors() returns an error.
This allows thermal_unregister_governor() to be dropped
and thermal_register_governor() that is only called by
thermal_register_governors() can be made static __init, so the
headers of these two functions can be dropped from thermal_core.h.
No intentional functional impact.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://patch.msgid.link/9615355.CDJkKcVGEf@rafael.j.wysocki
Diffstat (limited to 'mm/tests/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
