[PATCH 1/2] thermal/drivers/rcar_gen3: Handle -ENXIO from optional IRQ lookup
From: phucduc . bui
Date: Fri Aug 07 2026 - 05:31:30 EST
From: bui duc phuc <phucduc.bui@xxxxxxxxx>
platform_get_irq_optional() returns -ENXIO when the optional IRQ is not
specified. Treat -ENXIO as a valid absence of an optional IRQ, while
propagating other errors.
Signed-off-by: bui duc phuc <phucduc.bui@xxxxxxxxx>
---
drivers/thermal/renesas/rcar_gen3_thermal.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/thermal/renesas/rcar_gen3_thermal.c b/drivers/thermal/renesas/rcar_gen3_thermal.c
index 94804816e9e1..6204fb163ad7 100644
--- a/drivers/thermal/renesas/rcar_gen3_thermal.c
+++ b/drivers/thermal/renesas/rcar_gen3_thermal.c
@@ -491,7 +491,7 @@ static int rcar_gen3_thermal_request_irqs(struct rcar_gen3_thermal_priv *priv,
for (i = 0; i < 2; i++) {
irq = platform_get_irq_optional(pdev, i);
- if (irq < 0)
+ if (irq < 0 && irq != -ENXIO)
return irq;
irqname = devm_kasprintf(dev, GFP_KERNEL, "%s:ch%d",
--
2.43.0