diff options
author | Daniel Golle <daniel@makrotopia.org> | 2023-12-13 00:10:07 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-12-13 14:16:38 +0100 |
commit | 6475b8e1821c9d14e60592a74c10d75431500c7c (patch) | |
tree | 3971af15c982457039cf0bd6096495b4308ba3ab /sound/soc/mediatek/mt7986/mt7986-wm8960.c | |
parent | ASoC: cs42l43: Add missing statics for hp_ilimit functions (diff) | |
download | linux-6475b8e1821c9d14e60592a74c10d75431500c7c.tar.xz linux-6475b8e1821c9d14e60592a74c10d75431500c7c.zip |
ASoC: mediatek: mt7986: silence error in case of -EPROBE_DEFER
If probe is defered no error should be printed. Use dev_err_probe() to
have it muted.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Reviewed-by: Maso Huang <maso.huang@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://msgid.link/r/b941a404d97c01ef3e30c49925927b9a7dafeb19.1702422544.git.daniel@makrotopia.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to '')
-rw-r--r-- | sound/soc/mediatek/mt7986/mt7986-wm8960.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/mediatek/mt7986/mt7986-wm8960.c b/sound/soc/mediatek/mt7986/mt7986-wm8960.c index c1390b373410..6982e833421d 100644 --- a/sound/soc/mediatek/mt7986/mt7986-wm8960.c +++ b/sound/soc/mediatek/mt7986/mt7986-wm8960.c @@ -144,7 +144,7 @@ static int mt7986_wm8960_machine_probe(struct platform_device *pdev) ret = devm_snd_soc_register_card(&pdev->dev, card); if (ret) { - dev_err(&pdev->dev, "%s snd_soc_register_card fail: %d\n", __func__, ret); + dev_err_probe(&pdev->dev, ret, "%s snd_soc_register_card fail\n", __func__); goto err_of_node_put; } |