Skip to content
Commit 8d45719c authored by Kamil Konieczny's avatar Kamil Konieczny Committed by Viresh Kumar
Browse files

opp: core: add regulators enable and disable



Add enable regulators to dev_pm_opp_set_regulators() and disable
regulators to dev_pm_opp_put_regulators(). Even if bootloader
leaves regulators enabled, they should be enabled in kernel in
order to increase the reference count.

Tested-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Clément Péron's avatarClément Péron <peron.clem@gmail.com>
Tested-by: Clément Péron's avatarClément Péron <peron.clem@gmail.com>
Signed-off-by: default avatarKamil Konieczny <k.konieczny@samsung.com>
[ Viresh: Enable the regulator only after it is programmed and add a
	  flag to track its status. ]
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
parent b23dfa35
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