[PATCH v2 4/9] ASoC: amd: raven: Preserve probe error codes
From: phucduc . bui
Date: Fri Dec 04 2026 - 06:17:28 EST
From: bui duc phuc <phucduc.bui@xxxxxxxxx>
Return the original error codes from devm_request_irq() and
devm_snd_soc_register_component() instead of converting them
to -ENODEV.
Remove the redundant error messages.
Signed-off-by: bui duc phuc <phucduc.bui@xxxxxxxxx>
---
sound/soc/amd/raven/acp3x-pcm-dma.c | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/sound/soc/amd/raven/acp3x-pcm-dma.c b/sound/soc/amd/raven/acp3x-pcm-dma.c
index 1555157d8316..6842b7cd22ef 100644
--- a/sound/soc/amd/raven/acp3x-pcm-dma.c
+++ b/sound/soc/amd/raven/acp3x-pcm-dma.c
@@ -419,20 +419,16 @@ static int acp3x_audio_probe(struct platform_device *pdev)
status = devm_request_irq(&pdev->dev, adata->i2s_irq, i2s_irq_handler,
irqflags, "ACP3x_I2S_IRQ", adata);
- if (status) {
- dev_err(&pdev->dev, "ACP3x I2S IRQ request failed\n");
- return -ENODEV;
- }
+ if (status)
+ return status;
rv_writel(1, adata->acp3x_base + mmACP_EXTERNAL_INTR_ENB);
status = devm_snd_soc_register_component(&pdev->dev,
&acp3x_i2s_component,
NULL, 0);
- if (status) {
- dev_err(&pdev->dev, "Fail to register acp i2s component\n");
- return -ENODEV;
- }
+ if (status)
+ return status;
return 0;
}
--
2.43.0