ASoC: soc-core: setup card->rtd_num at snd_soc_instantiate_card()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 2 Oct 2019 05:23:07 +0000 (14:23 +0900)
committerMark Brown <broonie@kernel.org>
Thu, 3 Oct 2019 13:37:01 +0000 (14:37 +0100)
commitd8145989ff8c2a938be372b728f90e23de8557a2
tree77514f4971ade6d64261f0da9c21de34781285ca
parent50014499e6a45edd7ba1facf2133c03bbc7d8266
ASoC: soc-core: setup card->rtd_num at snd_soc_instantiate_card()

card->rtd_num is used to count rtd. Initialize it at
snd_soc_instantiate_card() is very natural and less confusion.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87zhijafgk.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-core.c