summaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq
diff options
context:
space:
mode:
authorZumeng Chen <zumeng.chen@gmail.com>2017-10-10 21:27:20 +0800
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2017-10-14 00:56:15 +0200
commit248aefdcc3a7e0cfbd014946b4dead63e750e71b (patch)
tree99564b7f0cdecf15dc93d968338159c4c3e0a9f9 /drivers/cpufreq
parent11f2c0d77ca856ce146a3e05e7bdfc0c5e6e0f61 (diff)
downloadop-kernel-dev-248aefdcc3a7e0cfbd014946b4dead63e750e71b.zip
op-kernel-dev-248aefdcc3a7e0cfbd014946b4dead63e750e71b.tar.gz
cpufreq: ti-cpufreq: add missing of_node_put()
call of_node_put to release the refcount of np. Signed-off-by: Zumeng Chen <zumeng.chen@gmail.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r--drivers/cpufreq/ti-cpufreq.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/cpufreq/ti-cpufreq.c b/drivers/cpufreq/ti-cpufreq.c
index ffcddcd..923317f 100644
--- a/drivers/cpufreq/ti-cpufreq.c
+++ b/drivers/cpufreq/ti-cpufreq.c
@@ -205,6 +205,7 @@ static int ti_cpufreq_init(void)
np = of_find_node_by_path("/");
match = of_match_node(ti_cpufreq_of_match, np);
+ of_node_put(np);
if (!match)
return -ENODEV;
OpenPOWER on IntegriCloud