]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: wm8804: Fix small issues in probe error paths
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Thu, 5 Mar 2015 15:39:22 +0000 (15:39 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 5 Mar 2015 16:51:58 +0000 (16:51 +0000)
commita81f3e24ff249a4f1919f5266b324352bfc62be2
tree6a5ea022aa33f0081cb804ab4cb56be08873aa71
parent7dc09930360c81005f4eeaa77f8aa0de23de9530
ASoC: wm8804: Fix small issues in probe error paths

This patch fixes some small issues on the probe error paths. Firstly,
fail probe if we can't register the regulator notifiers as this
will cause the cache to never be synchronised which will result in odd
behaviour if the regulators are controllable. Secondly, we don't need to
call regulator_bulk_disable if the enable fails, because the regulator
core will handle this clean up for us. Finally, we need to disable the
regulators if snd_soc_register_codecs fails.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm8804.c