diff options
author | Zumeng Chen <zumeng.chen@gmail.com> | 2017-10-10 21:27:20 +0800 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-10-14 00:56:15 +0200 |
commit | 248aefdcc3a7e0cfbd014946b4dead63e750e71b (patch) | |
tree | 99564b7f0cdecf15dc93d968338159c4c3e0a9f9 /drivers/cpufreq | |
parent | 11f2c0d77ca856ce146a3e05e7bdfc0c5e6e0f61 (diff) | |
download | op-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.c | 1 |
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; |