ASoC: Move component->probed check into soc_{remove,probe}_component()
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 19 Aug 2014 13:51:24 +0000 (15:51 +0200)
committerMark Brown <broonie@linaro.org>
Tue, 19 Aug 2014 15:59:46 +0000 (10:59 -0500)
commit70090bbb8b7d7da7a6f64969b43a61c493c560ff
tree409d673410355aae7fdbf952b01147de47f7b81d
parent57bf772687700e206c760ba2e4097f78bde97887
ASoC: Move component->probed check into soc_{remove,probe}_component()

Having the check in a centralized place makes the code a bit cleaner and
shorter.

Note: There is a slight semantic change in this patch. soc_probe_aux_dev() will
no longer return -EBUSY if the AUX dev has already been probed before. This is
fine though since it will simply do nothing in that case and return success.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/soc-core.c