ASoC: core: remove codec from list if registration failed
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 8 Mar 2013 01:42:33 +0000 (17:42 -0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 12 Mar 2013 18:34:59 +0000 (18:34 +0000)
commite1328a832c7eeeb4dd3c3666605717c555de9e83
tree6c5120e1f62a56f93d0f31d7547798e80c31bc05
parent2db6be6a7b3edc8a5acea99b817eb7b9e608e931
ASoC: core: remove codec from list if registration failed

Current snd_soc_register_codec() adds codec to list, and calls
snd_soc_register_dais().
But, this listed codec should be removed if dais registration
was failed.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/soc-core.c