ASoC: don't use rtd->codec on soc_dev_attr_is_visible()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 5 Dec 2017 04:20:42 +0000 (04:20 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 5 Dec 2017 12:40:29 +0000 (12:40 +0000)
commit3b6eed8deb37c349bffc7b3b4d722ce4023f8b11
treeaa972682672e2b358af34edba1ba7b980dad8c40
parent4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323
ASoC: don't use rtd->codec on soc_dev_attr_is_visible()

rtd->codec will be removed soon.
checking rtd->num_codecs is enough

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