From: Mark Brown Date: Wed, 28 Mar 2012 20:17:55 +0000 (+0100) Subject: regulator: Fix deadlock on removal of regulators with supplies X-Git-Tag: v3.4-rc2~22^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e032b376551a61662b20a2c8544fbbc568ab2e7f;p=pandora-kernel.git 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: Mark Brown --- Reading git-diff-tree failed