ASoC: da7219: Improve error handling for regulator supplies
authorAdam Thomson <Adam.Thomson.Opensource@diasemi.com>
Mon, 5 Oct 2015 14:10:04 +0000 (15:10 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 5 Oct 2015 14:59:16 +0000 (15:59 +0100)
commit4e929134eb8271abc9c52c371e056debfea6898b
treefb9ad4971b1f24b64fa5298892c1ffafa14cba8d
parent7c93377244329552a72912c63fd7503a4e88d6a1
ASoC: da7219: Improve error handling for regulator supplies

Currently if bulk_enable() of supplies fails, the code still goes on
to try and put the device into active state, and set expected IO
voltage of the device. This doesn't really make sense so code now
returns on bulk_enable() failure, with an error message. Also,
to help with debug, failure to get supplies also provides an error
message.

Signed-off-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/da7219.c