aboutsummaryrefslogtreecommitdiff
path: root/drivers/cpufreq/cppc_cpufreq.c
diff options
context:
space:
mode:
authorJavier Carrasco <javier.carrasco.cruz@gmail.com>2024-05-23 23:25:00 +0200
committerViresh Kumar <viresh.kumar@linaro.org>2024-05-28 11:39:06 +0530
commit9e697efe5f99ed793ec1d23a1c3467d7dc5863db (patch)
tree23b8acb544003d30f86f9fa2b76f4c15356aac25 /drivers/cpufreq/cppc_cpufreq.c
parentd01c84b97f19f1137211e90b0a910289a560019e (diff)
downloadlinux-9e697efe5f99ed793ec1d23a1c3467d7dc5863db.tar.gz
linux-9e697efe5f99ed793ec1d23a1c3467d7dc5863db.tar.bz2
linux-9e697efe5f99ed793ec1d23a1c3467d7dc5863db.zip
cpufreq: qcom-nvmem: eliminate uses of of_node_put()
Make use of the __free() macro to automate memory deallocation when the existing device nodes get out of scope, removing the need for of_node_put() and therefore increasing code safety if more error paths are added to the driver, which could miss the required of_node_put() as it already occurred with commit '57f2f8b4aa0c ("cpufreq: qcom: Refactor the driver to make it easier to extend")'. Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'drivers/cpufreq/cppc_cpufreq.c')
0 files changed, 0 insertions, 0 deletions