Skip to content

Commit a6134e7

Browse files
AaronDotbroonie
authored andcommitted
ASoC: loongson: Fix component check failed on FDT systems
Add missing snd_soc_dai_link.platforms assignment to avoid soc_dai_link_sanity_check() failure. Fixes: d240286 ("ASoC: loongson: Add Loongson ASoC Sound Card Support") Signed-off-by: Binbin Zhou <[email protected]> Link: https://patch.msgid.link/6645888f2f9e8a1d8d799109f867d0f97fd78c58.1728459624.git.zhoubinbin@loongson.cn Signed-off-by: Mark Brown <[email protected]>
1 parent 3fe9f58 commit a6134e7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sound/soc/loongson/loongson_card.c

+1
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ static int loongson_card_parse_of(struct loongson_card_data *data)
144144
dev_err(dev, "getting cpu dlc error (%d)\n", ret);
145145
goto err;
146146
}
147+
loongson_dai_links[i].platforms->of_node = loongson_dai_links[i].cpus->of_node;
147148

148149
ret = snd_soc_of_get_dlc(codec, NULL, loongson_dai_links[i].codecs, 0);
149150
if (ret < 0) {

0 commit comments

Comments
 (0)