ASoC: Add resource managed snd_soc_register_platform()
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Wed, 16 Apr 2014 12:46:11 +0000 (15:46 +0300)
committerMark Brown <broonie@linaro.org>
Fri, 18 Apr 2014 16:59:59 +0000 (17:59 +0100)
commit6870f12424a505e867b9ebda83f377d5cf9d17a3
treef84ca5386a8cf40d361fd22a6c820a94a3066675
parent55addf3150ef37e6b38d415547cc6f20b4d9aca1
ASoC: Add resource managed snd_soc_register_platform()

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

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
include/sound/soc.h
sound/soc/soc-devres.c