]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9f09f0eab2fbd30422a9dda3b3b2f7d1c8fe7f9f
tree35fc6ede45be3e75877962abcb8391d094da2943
parentf621cccabb026b330fd1784664fb2841126d367d
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