ASoC: qcom: don't select unnecessary Platform
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 19 Jun 2019 01:19:35 +0000 (10:19 +0900)
committerMark Brown <broonie@kernel.org>
Wed, 19 Jun 2019 11:58:51 +0000 (12:58 +0100)
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>
sound/soc/qcom/common.c

index 97488b5cc5157a5ba9a1c3f3fcf77803e9b9f5b0..adf49b1987546b648dd5deddc95c4ad3b43d2cbe 100644 (file)
@@ -103,7 +103,9 @@ int qcom_snd_parse_of(struct snd_soc_card *card)
                        link->codecs     = dlc;
                        link->num_codecs = 1;
 
-                       link->platforms->of_node = link->cpus->of_node;
+                       link->platforms = NULL;
+                       link->num_platforms = 0;
+
                        link->codecs->dai_name = "snd-soc-dummy-dai";
                        link->codecs->name = "snd-soc-dummy";
                        link->dynamic = 1;