commit
7fe072b4df5d0 ("ASoC: add for_each_card_prelinks() macro")
added new for_each_card_prelinks() macro, but it had typo.
This patch fixup it
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
return -EINVAL;
}
for_each_card_prelinks(card, i, dai_link) {
- if (dai_links->platform_name)
+ if (dai_link->platform_name)
continue;
- dai_links->platform_of_node = platform_node;
+ dai_link->platform_of_node = platform_node;
}
card->dev = dev;
return -EINVAL;
}
for_each_card_prelinks(card, i, dai_link) {
- if (dai_links->codec_name)
+ if (dai_link->codec_name)
continue;
- dai_links->codec_of_node = codec_node;
+ dai_link->codec_of_node = codec_node;
}
codec_node_bt_mrg = of_parse_phandle(pdev->dev.of_node,
return -EINVAL;
}
for_each_card_prelinks(card, i, dai_link) {
- if (dai_links->platform_name)
+ if (dai_link->platform_name)
continue;
- dai_links->platform_of_node = platform_node;
+ dai_link->platform_of_node = platform_node;
}
card->dev = &pdev->dev;
return -EINVAL;
}
for_each_card_prelinks(card, i, dai_link) {
- if (dai_links->codec_name)
+ if (dai_link->codec_name)
continue;
- dai_links->codec_of_node = codec_node;
+ dai_link->codec_of_node = codec_node;
}
ret = snd_soc_of_parse_audio_routing(card, "audio-routing");
for_each_card_prelinks(card, i, dai_link) {
if (dai_link->platform_name)
continue;
- dai_links->platform_of_node = platform_node;
+ dai_link->platform_of_node = platform_node;
}
codec_node = of_parse_phandle(pdev->dev.of_node,
return -EINVAL;
}
for_each_card_prelinks(card, i, dai_link) {
- if (dai_links->codec_name)
+ if (dai_link->codec_name)
continue;
- dai_links->codec_of_node = codec_node;
+ dai_link->codec_of_node = codec_node;
}
ret = devm_snd_soc_register_card(&pdev->dev, card);