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)
commit8931bf6208776292b1b888dd8534229f63e2eaa2
treef84ca5386a8cf40d361fd22a6c820a94a3066675
parentc9eaa447e77efe77b7fa4c953bd62de8297fd6c5
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