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: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Родитель
77b9b84132
Коммит
c2f0898b86
|
@ -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;
|
||||
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче