ASoC: simple-card-utils: don't select unnecessary Platform

ALSA SoC is now supporting "no Platform". Sound card doesn't need to
select "CPU component" as "Platform" anymore if it doesn't need
special Platform.
This patch removes such settings.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Kuninori Morimoto 2019-06-19 10:19:31 +09:00 коммит произвёл Mark Brown
Родитель 9ae6cdb184
Коммит 6f04374457
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 24D68B725D5487D0
1 изменённых файлов: 12 добавлений и 3 удалений

Просмотреть файл

@ -346,9 +346,18 @@ EXPORT_SYMBOL_GPL(asoc_simple_dai_init);
void asoc_simple_canonicalize_platform(struct snd_soc_dai_link *dai_link)
{
/* Assumes platform == cpu */
if (!dai_link->platforms->of_node)
dai_link->platforms->of_node = dai_link->cpus->of_node;
/*
* no Platform
*
* It will be waste of memory, but not be memory leak.
* see
* asoc_simple_init_priv()
* asoc_simple_priv
*/
if (!dai_link->platforms->of_node) {
dai_link->platforms = NULL;
dai_link->num_platforms = 0;
}
}
EXPORT_SYMBOL_GPL(asoc_simple_canonicalize_platform);