Skip to content
Unverified Commit 855bfff9 authored by Axel Lin's avatar Axel Lin Committed by Mark Brown
Browse files

regulator: fixed: Ensure enable_counter is correct if reg_domain_disable fails



dev_pm_genpd_set_performance_state() may fail, so had better to check it's
return value before decreasing priv->enable_counter.

Fixes: bf3a28cf ("regulator: fixed: support using power domain for enable/disable")
Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Link: https://lore.kernel.org/r/20210520111811.1806293-1-axel.lin@ingics.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 687c9e3b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment