Commit c2f0898b authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown

ASoC: simple-card-util: remove dai_link compatible code for platform

Now no simple/audio cards are using legacy dai_link style for platform.
Let's remove compatible code.
Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 77b9b841
......@@ -376,13 +376,9 @@ EXPORT_SYMBOL_GPL(asoc_simple_card_init_dai);
int asoc_simple_card_canonicalize_dailink(struct snd_soc_dai_link *dai_link)
{
/* Assumes platform == cpu */
if (dai_link->platform) {
if (!dai_link->platform->of_node)
dai_link->platform->of_node = dai_link->cpu_of_node;
} else {
if (!dai_link->platform_of_node)
dai_link->platform_of_node = dai_link->cpu_of_node;
}
if (!dai_link->platform->of_node)
dai_link->platform->of_node = dai_link->cpu_of_node;
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment