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>
This commit is contained in:
parent
ad61f44234
commit
141b467810
|
@ -251,6 +251,7 @@ static int cpu0_cpufreq_probe(struct platform_device *pdev)
|
||||||
}
|
}
|
||||||
|
|
||||||
of_node_put(np);
|
of_node_put(np);
|
||||||
|
of_node_put(parent);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
out_free_table:
|
out_free_table:
|
||||||
|
|
Loading…
Reference in New Issue