]> 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)
commitb28b6d6749a6e45ee71b252cd114262ca370e328
treecccae277f7b5e6c0a742c8032e62a14829a13356
parent426bbb6546c7d8d82f7c00d1c6a86e31eaf12243
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