Commit 4aeda901 authored by Zihuan Zhang's avatar Zihuan Zhang Committed by Viresh Kumar
Browse files

cpufreq: mediatek: 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: default avatarZihuan Zhang <zhangzihuan@kylinos.cn>
[ Viresh: Minor changes ]
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
parent 95102e0c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment