]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
cpufreq: tegra186: Use scope-based cleanup helper
authorZihuan Zhang <zhangzihuan@kylinos.cn>
Wed, 27 Aug 2025 02:31:55 +0000 (10:31 +0800)
committerViresh Kumar <viresh.kumar@linaro.org>
Fri, 29 Aug 2025 06:29:04 +0000 (11:59 +0530)
commit7bc0084632dda2907ff1d021dff36ffbdd83468c
treee0a9603fd0937cfd918b2e53617dc5a4ac856344
parent4aeda901d6896344c5b0b3a8428c4a830007ea85
cpufreq: tegra186: 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/tegra186-cpufreq.c