]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cpufreq: qcom-nvmem: eliminate uses of of_node_put()
authorJavier Carrasco <javier.carrasco.cruz@gmail.com>
Thu, 23 May 2024 21:25:00 +0000 (23:25 +0200)
committerViresh Kumar <viresh.kumar@linaro.org>
Tue, 28 May 2024 06:09:06 +0000 (11:39 +0530)
commit9e697efe5f99ed793ec1d23a1c3467d7dc5863db
tree23b8acb544003d30f86f9fa2b76f4c15356aac25
parentd01c84b97f19f1137211e90b0a910289a560019e
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>
drivers/cpufreq/qcom-cpufreq-nvmem.c