UPSTREAM: ASoC: da7219: Disable regulators on probe() failure
authorAdam Thomson <Adam.Thomson.Opensource@diasemi.com>
Tue, 22 Dec 2015 18:27:51 +0000 (18:27 +0000)
committerXing Zheng <zhengxing@rock-chips.com>
Wed, 13 Apr 2016 03:38:06 +0000 (11:38 +0800)
commit290fd86d8ec61e8f81a96ecb0064d92305375cc2
tree38655a0c765d29f517ba8da77549693ab70709db
parentfac23581ff8c7b41a9a9d26dadc7d344516b0b7c
UPSTREAM: ASoC: da7219: Disable regulators on probe() failure

If codec probe() function fails after supplies have been enabled
it should really tidy up and disable them again. This patch updates
the probe function to do just that.

Signed-off-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
(cherry picked from commit 9069bf9bc839d97e07fe17c336eab095c1065cec)

Change-Id: I3eebc1ff3af1b4f07fd564cc5d054ab0d6c43ad0
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
sound/soc/codecs/da7219.c