Commit 248aefdc authored by Zumeng Chen's avatar Zumeng Chen Committed by Rafael J. Wysocki

cpufreq: ti-cpufreq: add missing of_node_put()

call of_node_put to release the refcount of np.
Signed-off-by: default avatarZumeng Chen <zumeng.chen@gmail.com>
Acked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 11f2c0d7
...@@ -205,6 +205,7 @@ static int ti_cpufreq_init(void) ...@@ -205,6 +205,7 @@ static int ti_cpufreq_init(void)
np = of_find_node_by_path("/"); np = of_find_node_by_path("/");
match = of_match_node(ti_cpufreq_of_match, np); match = of_match_node(ti_cpufreq_of_match, np);
of_node_put(np);
if (!match) if (!match)
return -ENODEV; return -ENODEV;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment