Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7856e8fe authored by Saravana Kannan's avatar Saravana Kannan Committed by Junjie Wu
Browse files

PM / devfreq: governor_cpufreq: Fix incorrect refcounting of OF node



The of_node_put(of_child) call was put in to balance the of_node_get()
that's done inside for_each_child_of_node(). But that's not the right thing
to do because for_each_child_of_node() already takes care of doing
of_node_put(). So, delete the unnecessary of_node_put(of_child) call. We
still need the of_node_put(of_par) though.

Change-Id: Iff7744839cfcf01d5a472449f74859e9030b7e16
Signed-off-by: default avatarSaravana Kannan <skannan@codeaurora.org>
parent 718b9859
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment