From: Viresh Kumar Date: Mon, 15 Apr 2013 07:09:37 +0000 (+0000) Subject: cpufreq: cpu0: Put cpu parent node after using it X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=141b467810b78f2d7a85f4b752b42b92f014629b;p=linux-beck.git 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 Acked-by: Shawn Guo Signed-off-by: Rafael J. Wysocki --- 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: