]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
thermal/drivers/tegra/soctherm: Use devm_add_action_or_reset() for clock disable
authorDaniel Lezcano <daniel.lezcano@oss.qualcomm.com>
Fri, 24 Apr 2026 16:00:18 +0000 (18:00 +0200)
committerDaniel Lezcano <daniel.lezcano@kernel.org>
Tue, 26 May 2026 11:24:17 +0000 (13:24 +0200)
commit4ab6e05dc2f2b4ea3d8ffc0e0edfb8a5bcd2957f
treee4333c2bac0acc8476d4325d869b3189b921209d
parentba8a4e072a3a6b9affdb3d231975f3a42252a6fa
thermal/drivers/tegra/soctherm: Use devm_add_action_or_reset() for clock disable

Replace the manual error handling paths disabling the clocks with
devm_add_action_or_reset(). This ensures the clocks are properly
disabled on probe failure and driver removal, while simplifying the
code by removing the explicit error paths.

Signed-off-by: Daniel Lezcano <daniel.lezcano@oss.qualcomm.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@kernel.org>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Link: https://patch.msgid.link/20260424160019.41710-1-daniel.lezcano@oss.qualcomm.com
drivers/thermal/tegra/soctherm.c