aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/generic/simple-card-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/generic/simple-card-utils.c')
-rw-r--r--sound/soc/generic/simple-card-utils.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sound/soc/generic/simple-card-utils.c b/sound/soc/generic/simple-card-utils.c
index 1cb39309f5d5..cf026252cd4a 100644
--- a/sound/soc/generic/simple-card-utils.c
+++ b/sound/soc/generic/simple-card-utils.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * simple-card-core.c 2 * simple-card-utils.c
3 * 3 *
4 * Copyright (c) 2016 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> 4 * Copyright (c) 2016 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
5 * 5 *
@@ -195,9 +195,6 @@ EXPORT_SYMBOL_GPL(asoc_simple_card_init_dai);
195 195
196int asoc_simple_card_canonicalize_dailink(struct snd_soc_dai_link *dai_link) 196int asoc_simple_card_canonicalize_dailink(struct snd_soc_dai_link *dai_link)
197{ 197{
198 if (!dai_link->cpu_dai_name || !dai_link->codec_dai_name)
199 return -EINVAL;
200
201 /* Assumes platform == cpu */ 198 /* Assumes platform == cpu */
202 if (!dai_link->platform_of_node) 199 if (!dai_link->platform_of_node)
203 dai_link->platform_of_node = dai_link->cpu_of_node; 200 dai_link->platform_of_node = dai_link->cpu_of_node;