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)
committerMark Brown <broonie@kernel.org>
Wed, 23 Dec 2015 00:11:27 +0000 (00:11 +0000)
commit9069bf9bc839d97e07fe17c336eab095c1065cec
tree822a820b979b389c091be9f49bf5cf6d501f9660
parentfdd50a8086422caa456b5f8abb631dda6c551744
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>
sound/soc/codecs/da7219.c