]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
cpufreq: s5pv210: Use scope-based cleanup helper
authorZihuan Zhang <zhangzihuan@kylinos.cn>
Wed, 27 Aug 2025 02:31:54 +0000 (10:31 +0800)
committerViresh Kumar <viresh.kumar@linaro.org>
Fri, 29 Aug 2025 06:12:24 +0000 (11:42 +0530)
commit95102e0cc15688ddffc8da1f15cfec2276fa45e5
tree9bac1e969ce68f6c07b67b6557af943d9a2f2233
parentc8dc2368b23e1a9f11be4c941e13f3985195d0c9
cpufreq: s5pv210: Use scope-based cleanup helper

Replace the manual cpufreq_cpu_put() with __free(put_cpufreq_policy)
annotation for policy references. This reduces the risk of reference
counting mistakes and aligns the code with the latest kernel style.

No functional change intended.

Signed-off-by: Zihuan Zhang <zhangzihuan@kylinos.cn>
[ Viresh: Minor changes ]
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/s5pv210-cpufreq.c