if (!dai)
return -ENOMEM;
- /* for cpus/codecs/platforms */
- comp = devm_kzalloc(&pdev->dev, 3 * sizeof(*comp), GFP_KERNEL);
+ /* for cpus/codecs */
+ comp = devm_kzalloc(&pdev->dev, 2 * sizeof(*comp), GFP_KERNEL);
if (!comp)
return -ENOMEM;
dai->num_cpus = 1;
dai->codecs = &comp[1];
dai->num_codecs = 1;
- dai->platforms = &comp[2];
- dai->num_platforms = 1;
dai->name = "WM8731";
dai->stream_name = "WM8731 HiFi";
return -EINVAL;
}
dai->cpus->of_node = cpu_np;
- dai->platforms->of_node = cpu_np;
dai_fmt = snd_soc_of_parse_daifmt(np, NULL,
&bitclkmaster, &framemaster);