summaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2013-04-15 07:09:37 +0000
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-04-22 00:53:40 +0200
commit141b467810b78f2d7a85f4b752b42b92f014629b (patch)
treeecbe049a995b216c357b8610f911ad9681935e6f /drivers/cpufreq
parentad61f44234c8e2814e47724ddebdc1eb58625f3f (diff)
downloadlinux-141b467810b78f2d7a85f4b752b42b92f014629b.tar.gz
linux-141b467810b78f2d7a85f4b752b42b92f014629b.tar.bz2
linux-141b467810b78f2d7a85f4b752b42b92f014629b.zip
cpufreq: cpu0: Put cpu parent node after using it
Parent node must be put after using it to balance its usage count. This was missing in cpufreq-cpu0 driver. Fix it. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Acked-by: Shawn Guo <shawn.guo@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r--drivers/cpufreq/cpufreq-cpu0.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/cpufreq/cpufreq-cpu0.c b/drivers/cpufreq/cpufreq-cpu0.c
index 65618536abfa..7684dfc3ddf6 100644
--- a/drivers/cpufreq/cpufreq-cpu0.c
+++ b/drivers/cpufreq/cpufreq-cpu0.c
@@ -251,6 +251,7 @@ static int cpu0_cpufreq_probe(struct platform_device *pdev)
}
of_node_put(np);
+ of_node_put(parent);
return 0;
out_free_table: