]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ASoC: sgtl5000: Use devm_regulator_bulk_get()
authorFabio Estevam <fabio.estevam@freescale.com>
Thu, 24 Apr 2014 17:13:08 +0000 (14:13 -0300)
committerMark Brown <broonie@linaro.org>
Thu, 24 Apr 2014 17:32:40 +0000 (18:32 +0100)
commit63e54cd9caa3ce03635810608519e2b37d8bc706
treefab4af15d3dcb39c553659f56dd829a7e8e9d479
parentc9eaa447e77efe77b7fa4c953bd62de8297fd6c5
ASoC: sgtl5000: Use devm_regulator_bulk_get()

Using devm_regulator_bulk_get() can make the code cleaner and smaller as we
do not need to call regulator_bulk_free() in the error and remove paths.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/sgtl5000.c