summaryrefslogtreecommitdiff
path: root/sound/soc/mediatek/mt6797
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2018-09-21 07:46:28 +0000
committerMark Brown <broonie@kernel.org>2018-09-21 09:21:03 -0700
commit0310820c2738e92003d9dd8cabee77ff958a16dc (patch)
tree680f709d16dda6e5d02f278753a3c4b099de1f0f /sound/soc/mediatek/mt6797
parentfc795bf7224efda8c35e505966c2757856064247 (diff)
ASoC: tidyup for_each_card_prelinks() dai_link
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>
Diffstat (limited to 'sound/soc/mediatek/mt6797')
-rw-r--r--sound/soc/mediatek/mt6797/mt6797-mt6351.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/mediatek/mt6797/mt6797-mt6351.c b/sound/soc/mediatek/mt6797/mt6797-mt6351.c
index ff2e0ca4384e..cc41eb531653 100644
--- a/sound/soc/mediatek/mt6797/mt6797-mt6351.c
+++ b/sound/soc/mediatek/mt6797/mt6797-mt6351.c
@@ -172,7 +172,7 @@ static int mt6797_mt6351_dev_probe(struct platform_device *pdev)
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,
@@ -183,9 +183,9 @@ static int mt6797_mt6351_dev_probe(struct platform_device *pdev)
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);