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

regulator: Fix deadlock on removal of regulators with supplies



If a regulator with a supply is being unregistered we will call
regulator_put() to release the supply with the regulator_list_mutex held
but this deadlocks as regulator_put() takes the same lock. Fix this by
releasing the supply before we take the mutex in regulator_unregister().

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 15c08f66
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