ASoC: Merge common code in DAI link and auxiliary codec probing/removal
authorJarkko Nikula <jhnikula@gmail.com>
Mon, 6 Dec 2010 14:27:07 +0000 (16:27 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 6 Dec 2010 19:14:46 +0000 (19:14 +0000)
commit589c3563f6476950f26b5bcc9beb1b39a7bcc644
tree8d3d5ef20fc37e36f014fd80059bc0e9f6e42f99
parent0afc8c733e95642ee9200966081da82564af8f8f
ASoC: Merge common code in DAI link and auxiliary codec probing/removal

Commit 2eea392 "ASoC: Add support for optional auxiliary dailess codecs"
added much of code that can be shared with DAI link codec probing/removal.
Merge now this common code into new soc_probe_codec, soc_remove_codec and
soc_post_component_init functions.

Error prints in these functions are converted to use dev_err and to print
the error code.

Signed-off-by: Jarkko Nikula <jhnikula@gmail.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/soc-core.c