From: Charles Keepax Date: Wed, 14 Nov 2012 09:39:31 +0000 (+0000) Subject: regulator: core: Avoid deadlock when regulator_register fails X-Git-Tag: v3.7-rc6~19^2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23ff2f0f6128b4c310fbb274dbb91cc2f9b6ab06;p=pandora-kernel.git regulator: core: Avoid deadlock when regulator_register fails When regulator_register fails and exits through the scrub path the regulator_put function was called whilst holding the regulator_list_mutex, causing deadlock. This patch adds a private version of the regulator_put function which can be safely called whilst holding the mutex, replacing the aforementioned call. Signed-off-by: Charles Keepax Signed-off-by: Mark Brown --- Reading git-diff-tree failed