Skip to content

Commit 47d7d3f

Browse files
jason77-wangbroonie
authored andcommitted
ASoC: imx-card: Set card.owner to avoid a warning calltrace if SND=m
In most Linux distribution kernels, the SND is set to m, in such a case, when booting the kernel on i.MX8MP EVK board, there is a warning calltrace like below: Call trace: snd_card_init+0x484/0x4cc [snd] snd_card_new+0x70/0xa8 [snd] snd_soc_bind_card+0x310/0xbd0 [snd_soc_core] snd_soc_register_card+0xf0/0x108 [snd_soc_core] devm_snd_soc_register_card+0x4c/0xa4 [snd_soc_core] That is because the card.owner is not set, a warning calltrace is raised in the snd_card_init() due to it. Fixes: aa73670 ("ASoC: imx-card: Add imx-card machine driver") Signed-off-by: Hui Wang <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 17d8adc commit 47d7d3f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sound/soc/fsl/imx-card.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -710,6 +710,7 @@ static int imx_card_probe(struct platform_device *pdev)
710710

711711
data->plat_data = plat_data;
712712
data->card.dev = &pdev->dev;
713+
data->card.owner = THIS_MODULE;
713714

714715
dev_set_drvdata(&pdev->dev, &data->card);
715716
snd_soc_card_set_drvdata(&data->card, data);

0 commit comments

Comments
 (0)