diff options
Diffstat (limited to 'sound/soc/generic/simple-card-utils.c')
-rw-r--r-- | sound/soc/generic/simple-card-utils.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sound/soc/generic/simple-card-utils.c b/sound/soc/generic/simple-card-utils.c index 1cb39309f5d5..e5b80f53093a 100644 --- a/sound/soc/generic/simple-card-utils.c +++ b/sound/soc/generic/simple-card-utils.c | |||
@@ -195,9 +195,6 @@ EXPORT_SYMBOL_GPL(asoc_simple_card_init_dai); | |||
195 | 195 | ||
196 | int asoc_simple_card_canonicalize_dailink(struct snd_soc_dai_link *dai_link) | 196 | int 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; |