cpufreq: pmac64: add of_node_put()
Subsystems (2)
PATCH 1/1 cpufreq: pmac64: add of_node_put()
use of_node_put to release the refcount of node.
Signed-off-by Yangtao Li <[email protected]>
--- drivers/cpufreq/pmac64-cpufreq.c | 1 + 1 file changed, 1 insertion(+)
drivers/cpufreq/pmac64-cpufreq.c +1 -0
@@ -411,6 +411,7 @@ static int __init g5_neo2_cpufreq_init(struct device_node *cpunode) pfunc_set_vdnap0 =pmf_find_function (root,"set-vdnap0" ); pfunc_vdnap0_complete =pmf_find_function (root,"slewing-done" ); +of_node_put (root);if (pfunc_set_vdnap0 ==NULL || pfunc_vdnap0_complete ==NULL ) {pr_err ("Can't find required platform function\n" );
Signature · 1 line
2.17.0
Quoted 12 lines · Yangtao Li
use
of_node_putto release the refcount of node.Signed-off-by Yangtao Li <[email protected]>--- drivers/cpufreq/pmac64-cpufreq.c | 1 + 1 file changed, 1 insertion(+)drivers/cpufreq/pmac64-cpufreq.c +0
-0
drivers/cpufreq/pmac64-cpufreq.c static int __init g5_neo2_cpufreq_init(struct device_node *cpunode) · line 417
Quoted 7 lines
drivers/cpufreq/pmac64-cpufreq.c +1
-0@@ -411,6 +411,7 @@ static int __init g5_neo2_cpufreq_init(struct device_node *cpunode) pfunc_set_vdnap0 =pmf_find_function (root,"set-vdnap0" ); pfunc_vdnap0_complete =pmf_find_function (root,"slewing-done" ); +of_node_put (root);if (pfunc_set_vdnap0 ==NULL || pfunc_vdnap0_complete ==NULL ) {pr_err ("Can't find required platform function\n" );
Acked-by Viresh Kumar <[email protected]>
Signature · 1 line
viresh