Skip to content
Commit 7cd71c3b authored by Mark Brown's avatar Mark Brown
Browse files

regulator: core: Drop regulator_list_mutex when we're done with it on remove



When removing a regulator we hold regulator_list_mutex in order to
ensure the regualtor doesn't become removed again.  However we only need
to protect the list until we remove the regulator from the list so move
the unlock earlier to reduce the locked region.

Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 70cfef26
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