]> git.baikalelectronics.ru Git - kernel.git/commit
drivers: cpufreq: Add missing of_node_put() in qoriq-cpufreq.c
authorLiang He <windhl@126.com>
Wed, 15 Jun 2022 09:48:07 +0000 (17:48 +0800)
committerViresh Kumar <viresh.kumar@linaro.org>
Tue, 28 Jun 2022 08:04:45 +0000 (13:34 +0530)
commit6e4ef620fbaa19e65980629db2e862e04adf5f47
tree0d1e702e6c132bd80dea0f23b5f64b5a436e4a1f
parentf040cca4b0da0180bf9de9141ef5c95f60f85182
drivers: cpufreq: Add missing of_node_put() in qoriq-cpufreq.c

In qoriq_cpufreq_probe(), of_find_matching_node() will return a
node pointer with refcount incremented. We should use of_node_put()
when it is not used anymore.

Fixes: 5c1f0af85f55 ("cpufreq: qoriq: convert to a platform driver")
[ Viresh: Fixed Author's name in commit log ]
Signed-off-by: Liang He <windhl@126.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/qoriq-cpufreq.c