]> git.hungrycats.org Git - linux/commitdiff
ASoC: rockchip: i2s-tdm: Drop redundant probe error messages
authorbui duc phuc <phucduc.bui@gmail.com>
Thu, 6 Aug 2026 05:21:29 +0000 (12:21 +0700)
committerMark Brown <broonie@kernel.org>
Thu, 13 Aug 2026 14:46:01 +0000 (15:46 +0100)
Remove the probe error messages to avoid duplicate error reporting,
since the error is already reported by the called functions.

Signed-off-by: bui duc phuc <phucduc.bui@gmail.com>
Link: https://patch.msgid.link/20260806052136.21034-8-phucduc.bui@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/rockchip/rockchip_i2s_tdm.c

index c9ad769a4072588b63a693f5339667ec01c2586d..5ef7f109706d2e298fd461ce07ab301b14154aa6 100644 (file)
@@ -1361,17 +1361,12 @@ static int rockchip_i2s_tdm_probe(struct platform_device *pdev)
        ret = devm_snd_soc_register_component(&pdev->dev,
                                              &rockchip_i2s_tdm_component,
                                              i2s_tdm->dai, 1);
-
-       if (ret) {
-               dev_err(&pdev->dev, "Could not register DAI\n");
+       if (ret)
                goto err_suspend;
-       }
 
        ret = devm_snd_dmaengine_pcm_register(&pdev->dev, NULL, 0);
-       if (ret) {
-               dev_err(&pdev->dev, "Could not register PCM\n");
+       if (ret)
                goto err_suspend;
-       }
 
        return 0;