]> git.hungrycats.org Git - linux/commitdiff
ASoC: rockchip: rk3288_hdmi_analog: Drop redundant probe error messages
authorbui duc phuc <phucduc.bui@gmail.com>
Thu, 6 Aug 2026 05:21:23 +0000 (12:21 +0700)
committerMark Brown <broonie@kernel.org>
Thu, 13 Aug 2026 14:45:47 +0000 (15:45 +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-2-phucduc.bui@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/rockchip/rk3288_hdmi_analog.c

index cf642a23c38ad0dc512fd57d27c689c07fb28e5b..d88d5ccfcdb23909c09a2e9ad8050c378db2e0df 100644 (file)
@@ -185,10 +185,8 @@ static int snd_rk_mc_probe(struct platform_device *pdev)
        gpiod_set_consumer_name(machine->gpio_hp_en, "hp_en");
 
        ret = snd_soc_of_parse_card_name(card, "rockchip,model");
-       if (ret) {
-               dev_err(card->dev, "SoC parse card name failed %d\n", ret);
+       if (ret)
                return ret;
-       }
 
        rk_dailink.codecs[0].of_node = of_parse_phandle(np,
                                                        "rockchip,audio-codec",
@@ -223,11 +221,8 @@ static int snd_rk_mc_probe(struct platform_device *pdev)
        rk_dailink.platforms->of_node = rk_dailink.cpus->of_node;
 
        ret = snd_soc_of_parse_audio_routing(card, "rockchip,routing");
-       if (ret) {
-               dev_err(&pdev->dev,
-                       "Unable to parse 'rockchip,routing' property\n");
+       if (ret)
                return ret;
-       }
 
        snd_soc_card_set_drvdata(card, machine);