aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-nuc900.c
diff options
context:
space:
mode:
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>2012-11-14 04:39:31 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-11-14 05:01:15 -0500
commit23ff2f0f6128b4c310fbb274dbb91cc2f9b6ab06 (patch)
tree9357fa1193781d7b23f3f49d473e29b1352a4201 /drivers/spi/spi-nuc900.c
parent77b67063bb6bce6d475e910d3b886a606d0d91f7 (diff)
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 <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/spi/spi-nuc900.c')
0 files changed, 0 insertions, 0 deletions