Skip to content
Commit 3466ea2c authored by Liang He's avatar Liang He Committed by Viresh Kumar
Browse files

OPP: Don't drop opp->np reference while it is still in use



The struct dev_pm_opp contains a reference of the DT node, opp->np,
throughout its lifetime. We should increase the refcount for the same
from _opp_add_static_v2(), and drop it while removing the OPP finally.

Signed-off-by: default avatarLiang He <windhl@126.com>
[ Viresh: Updated subject / commit log, create _of_clear_opp() and drop
	  reference from it]
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
parent ce736cf7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment