ASoC: core: Add devm_snd_soc_register_card()
authorMark Brown <broonie@linaro.org>
Mon, 16 Sep 2013 17:02:05 +0000 (18:02 +0100)
committerMark Brown <broonie@linaro.org>
Mon, 16 Sep 2013 23:50:06 +0000 (00:50 +0100)
commit0e4ff5c806263bf40ee5409ac283b776f0c11e41
treeeda5a0e77010c93620b288ded2b9b1cdff85a977
parenta0b03a616b08cf9d709812ff5cf7e9c0958d6807
ASoC: core: Add devm_snd_soc_register_card()

Simplify error handling and remove repetitive (and rarely executed) code
for unregistration by providing a devm_snd_soc_register() card.

Signed-off-by: Mark Brown <broonie@linaro.org>
Acked-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
include/sound/soc.h
sound/soc/soc-devres.c