ASoC: stm: stm32_adfsdm: Drop redundant error message

devm_snd_soc_register_component() already logs the failure internally.
Drop the redundant error message and return the original error directly.

Signed-off-by: bui duc phuc <phucduc.bui@gmail.com>
Link: https://patch.msgid.link/20260720074044.87528-2-phucduc.bui@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
bui duc phuc 2026-07-20 14:40:40 +07:00 committed by Mark Brown
parent acc414eda8
commit 30df43c140
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -360,11 +360,8 @@ static int stm32_adfsdm_probe(struct platform_device *pdev)
ret = devm_snd_soc_register_component(&pdev->dev,
&stm32_adfsdm_soc_platform,
NULL, 0);
if (ret < 0) {
dev_err(&pdev->dev, "%s: Failed to register PCM platform\n",
__func__);
if (ret < 0)
return ret;
}
pm_runtime_enable(&pdev->dev);