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)
commitaff041af948f5cdf51e2115f267957a89f28ac0f
treecccae277f7b5e6c0a742c8032e62a14829a13356
parent59ac2149aee9b69732dad602ea250ecb60b9e617
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