a40c249257c5135c16493560fcacf5ffce5e04ad
[openwrt/staging/jow.git] /
1 From e4cde335d1771863a60b6931e51357b8470e85c4 Mon Sep 17 00:00:00 2001
2 From: Daniel Golle <daniel@makrotopia.org>
3 Date: Sun, 10 Dec 2023 22:41:39 +0000
4 Subject: [PATCH] ASoC: mediatek: mt7986: silence error in case of
5 -EPROBE_DEFER
6
7 If probe is defered no error should be printed. Mute it.
8
9 Signed-off-by: Daniel Golle <daniel@makrotopia.org>
10 ---
11 sound/soc/mediatek/mt7986/mt7986-wm8960.c | 4 +++-
12 1 file changed, 3 insertions(+), 1 deletion(-)
13
14 --- a/sound/soc/mediatek/mt7986/mt7986-wm8960.c
15 +++ b/sound/soc/mediatek/mt7986/mt7986-wm8960.c
16 @@ -144,7 +144,9 @@ static int mt7986_wm8960_machine_probe(s
17
18 ret = devm_snd_soc_register_card(&pdev->dev, card);
19 if (ret) {
20 - dev_err(&pdev->dev, "%s snd_soc_register_card fail: %d\n", __func__, ret);
21 + if (ret != -EPROBE_DEFER)
22 + dev_err(&pdev->dev, "%s snd_soc_register_card fail: %d\n", __func__, ret);
23 +
24 goto err_of_node_put;
25 }
26