Skip to content

Commit

Permalink
cpufreq: cpu0: Put cpu parent node after using it
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Viresh Kumar authored and Rafael J. Wysocki committed Apr 21, 2013
1 parent ad61f44 commit 141b467
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/cpufreq/cpufreq-cpu0.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 141b467

Please sign in to comment.