ASoC: cs4270: Move regulator acquisition to I2C probe()
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 10 Sep 2012 04:53:12 +0000 (12:53 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 11 Sep 2012 00:16:11 +0000 (08:16 +0800)
commitb61d6d40323997d9da3b95ecce2570f0b782a07f
tree35fc6ede45be3e75877962abcb8391d094da2943
parent19ace0e97a605042c481c2ea3f7aeb59c0eb54ed
ASoC: cs4270: Move regulator acquisition to I2C probe()

This is better style since it has us obtaining all resources before we
try the ASoC probe. This change also fixes a potential issue where we
don't enable the regulators before trying to confirm the device ID which
could cause a failure during probe in some system configurations.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Timur Tabi <timur@freescale.com>
sound/soc/codecs/cs4270.c