ASoC: mediatek: mt8195-mt6359: reduce log verbosity in probe()
authorTzung-Bi Shih <tzungbi@google.com>
Mon, 20 Dec 2021 09:34:07 +0000 (17:34 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 20 Dec 2021 20:26:53 +0000 (20:26 +0000)
Eliminates error messages if snd_soc_register_card() failed.  Kernel
emits messages if device probe error anyway.

This is mainly for removing the following error messages during boot.
    >>> snd_soc_register_card fail -517

Signed-off-by: Tzung-Bi Shih <tzungbi@google.com>
Link: https://lore.kernel.org/r/20211220093408.207206-1-tzungbi@google.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/mt8195/mt8195-mt6359-rt1011-rt5682.c
sound/soc/mediatek/mt8195/mt8195-mt6359-rt1019-rt5682.c

index 5cdbfaafd479b889f64768f8db4f9e8bf7ea002f..9cf907c49ea80b2c9d3cd0722cf29c7350d3f87d 100644 (file)
@@ -1114,8 +1114,6 @@ static int mt8195_mt6359_rt1011_rt5682_dev_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);
                of_node_put(priv->hdmi_node);
                of_node_put(priv->dp_node);
                of_node_put(priv->platform_node);
index fa50a31e9718ae35d417bfc89aa33d83a0e69a2a..fdd4441387281f17f352ec1ea66ac1a2d105a13a 100644 (file)
@@ -1358,8 +1358,6 @@ static int mt8195_mt6359_rt1019_rt5682_dev_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);
                of_node_put(priv->hdmi_node);
                of_node_put(priv->dp_node);
                of_node_put(priv->platform_node);