[PATCH] ASoC: sti: uniperif: Propagate the IRQ lookup error

From: Zhu Jun

Date: Thu Nov 19 2026 - 02:59:06 EST


The uniperipheral driver converts any error from platform_get_irq()
to -ENXIO. This also masks -EPROBE_DEFER when an interrupt provider
is not ready, preventing the device core from retrying probe.

Return the error from platform_get_irq() directly.

Fixes: f3bd847eb0a7 ("ASoC: sti: Add uniperipheral dai driver")
Signed-off-by: Zhu Jun <zhujun2@xxxxxxxxxxxxxxxxxxxx>
---
sound/soc/sti/sti_uniperif.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/sti/sti_uniperif.c b/sound/soc/sti/sti_uniperif.c
index 3fbd9fee94ac..d30d5b3efad6 100644
--- a/sound/soc/sti/sti_uniperif.c
+++ b/sound/soc/sti/sti_uniperif.c
@@ -425,7 +425,7 @@ static int sti_uniperiph_cpu_dai_of(struct device_node *node,

uni->irq = platform_get_irq(priv->pdev, 0);
if (uni->irq < 0)
- return -ENXIO;
+ return uni->irq;

uni->type = dev_data->type;