ASoC: Replace list_empty(&card->codec_dev_list) with !card->instantiated
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 19 Aug 2014 13:51:30 +0000 (15:51 +0200)
committerMark Brown <broonie@linaro.org>
Tue, 19 Aug 2014 15:59:48 +0000 (10:59 -0500)
commitc5599b87a8317738a541d8893cb327df5d04b007
treeee4241c8274d656de11921ff596bfdb0bdaeef1e
parent75af7c081982d76cef0daf26e96b5d1e8cb9d631
ASoC: Replace list_empty(&card->codec_dev_list) with !card->instantiated

With componentization we no longer necessarily need a snd_soc_codec struct for a
card. Instead of checking if the card's CODEC list is empty just use
card->instantiated to check if the card has been instantiated yet.

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