Skip to content

Commit dc801ea

Browse files
morimotobroonie
authored andcommitted
ASoC: fsl: imx-audmix: remove dummy dai_link->platform
Dummy dai_link->platform is not needed. Signed-off-by: Kuninori Morimoto <[email protected]> Acked-by: Shengjiu Wang <[email protected]> Tested-by: Shengjiu Wang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 3ce08f8 commit dc801ea

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

sound/soc/fsl/imx-audmix.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,8 @@ static int imx_audmix_probe(struct platform_device *pdev)
207207
for (i = 0; i < num_dai; i++) {
208208
struct snd_soc_dai_link_component *dlc;
209209

210-
/* for CPU/Codec x 2 + Platform */
211-
dlc = devm_kcalloc(&pdev->dev, 5, sizeof(*dlc), GFP_KERNEL);
210+
/* for CPU/Codec x 2 */
211+
dlc = devm_kcalloc(&pdev->dev, 4, sizeof(*dlc), GFP_KERNEL);
212212
if (!dlc)
213213
return -ENOMEM;
214214

@@ -272,18 +272,15 @@ static int imx_audmix_probe(struct platform_device *pdev)
272272

273273
priv->dai[num_dai + i].cpus = &dlc[2];
274274
priv->dai[num_dai + i].codecs = &dlc[3];
275-
priv->dai[num_dai + i].platforms = &dlc[4];
276275

277276
priv->dai[num_dai + i].num_cpus = 1;
278277
priv->dai[num_dai + i].num_codecs = 1;
279-
priv->dai[num_dai + i].num_platforms = 1;
280278

281279
priv->dai[num_dai + i].name = be_name;
282280
priv->dai[num_dai + i].codecs->dai_name = "snd-soc-dummy-dai";
283281
priv->dai[num_dai + i].codecs->name = "snd-soc-dummy";
284282
priv->dai[num_dai + i].cpus->of_node = audmix_np;
285283
priv->dai[num_dai + i].cpus->dai_name = be_name;
286-
priv->dai[num_dai + i].platforms->name = "snd-soc-dummy";
287284
priv->dai[num_dai + i].no_pcm = 1;
288285
priv->dai[num_dai + i].dpcm_playback = 1;
289286
priv->dai[num_dai + i].dpcm_capture = 1;

0 commit comments

Comments
 (0)