]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
thermal/core: Use devm_add_action_or_reset() when registering a cooling device
authorDaniel Lezcano <daniel.lezcano@oss.qualcomm.com>
Wed, 29 Apr 2026 16:14:14 +0000 (18:14 +0200)
committerDaniel Lezcano <daniel.lezcano@kernel.org>
Tue, 26 May 2026 11:24:29 +0000 (13:24 +0200)
commit31da1d4451c88b63779bc3f855ae15f718c0e539
treed18e038943f69638c3d6692773fc2fdd3788c3e3
parentee126267bc04bfb03816ae9d71ca24c5bf99e739
thermal/core: Use devm_add_action_or_reset() when registering a cooling device

Use devm_add_action_or_reset() which does the replaced code. It
results in a simpler and more concise code.

Signed-off-by: Daniel Lezcano <daniel.lezcano@oss.qualcomm.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@kernel.org>
Reviewed-by: Rafael J. Wysocki (Intel) <rafael@kernel.org>
Link: https://patch.msgid.link/20260429161430.3802970-2-daniel.lezcano@oss.qualcomm.com
drivers/thermal/thermal_core.c