summaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-core.c
diff options
context:
space:
mode:
authorKuninori Morimoto2017-12-05 05:20:42 +0100
committerMark Brown2017-12-05 13:40:29 +0100
commit3b6eed8deb37c349bffc7b3b4d722ce4023f8b11 (patch)
treeaa972682672e2b358af34edba1ba7b980dad8c40 /sound/soc/soc-core.c
parentLinux 4.15-rc1 (diff)
downloadkernel-qcow2-linux-3b6eed8deb37c349bffc7b3b4d722ce4023f8b11.tar.gz
kernel-qcow2-linux-3b6eed8deb37c349bffc7b3b4d722ce4023f8b11.tar.xz
kernel-qcow2-linux-3b6eed8deb37c349bffc7b3b4d722ce4023f8b11.zip
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>
Diffstat (limited to 'sound/soc/soc-core.c')
-rw-r--r--sound/soc/soc-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index c0edac80df34..90f1122d91c4 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -213,7 +213,7 @@ static umode_t soc_dev_attr_is_visible(struct kobject *kobj,
if (attr == &dev_attr_pmdown_time.attr)
return attr->mode; /* always visible */
- return rtd->codec ? attr->mode : 0; /* enabled only with codec */
+ return rtd->num_codecs ? attr->mode : 0; /* enabled only with codec */
}
static const struct attribute_group soc_dapm_dev_group = {