projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11f2c0d
)
cpufreq: ti-cpufreq: add missing of_node_put()
author
Zumeng Chen
<zumeng.chen@gmail.com>
Tue, 10 Oct 2017 13:27:20 +0000
(21:27 +0800)
committer
Rafael J. Wysocki
<rafael.j.wysocki@intel.com>
Fri, 13 Oct 2017 22:56:15 +0000
(
00:56
+0200)
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>
drivers/cpufreq/ti-cpufreq.c
patch
|
blob
|
history
diff --git
a/drivers/cpufreq/ti-cpufreq.c
b/drivers/cpufreq/ti-cpufreq.c
index ffcddcd4c5e68c7f9a356df2e18417e9c6f0a278..923317f03b4bc367b8ce3d79197bca1d2b6f9a52 100644
(file)
--- 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;