Re: [PATCH 2/6] ASoC: samsung: aries_wm8994: Drop redundant probe error messages
From: Cezary Rojewski
Date: Tue Aug 11 2026 - 09:15:38 EST
On 8/11/2026 11:05 AM, phucduc.bui@xxxxxxxxx wrote:
From: bui duc phuc <phucduc.bui@xxxxxxxxx>
Remove the probe error messages to avoid duplicate error reporting,
since the error is already reported by the called functions.
...
@@ -671,10 +667,8 @@ static int aries_audio_probe(struct platform_device *pdev)
ret = devm_snd_soc_register_component(dev, &aries_component,
aries_ext_dai, ARRAY_SIZE(aries_ext_dai));
- if (ret < 0) {
- dev_err(dev, "Failed to register component: %d\n", ret);
+ if (ret < 0)
goto out;
- }
To be fair, xxx_snd_soc_register_component(), both the devres and the non-devres equivalent do not report anything. The component_initialize() and component_add() do though, most of the time.
ret = devm_snd_soc_register_card(dev, card);
if (ret)