]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: sta32x: Move regulator acquisition to I2C probe
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 10 Sep 2012 02:59:51 +0000 (10:59 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 10 Sep 2012 09:26:00 +0000 (17:26 +0800)
commitfc401e9604361fb2f1ba8885cf084321bf59ff09
treecccae277f7b5e6c0a742c8032e62a14829a13356
parentaa14bc03731ed436d8685437908a0b15405c2239
ASoC: sta32x: Move regulator acquisition to I2C probe

This is better style as it ensures we don't try to do the ASoC probe
without required resources. Also convert to devm_ while we're at it,
saving a bit of code, and fix a leak of enable on error.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Johannes Stezenbach <js@sig21.net>
sound/soc/codecs/sta32x.c