drivers: interrupt_controller: intc_shared: cond. forward sense cell
The shared interrupt controller depended on interrupt-cell sense
to inialize the interrupt using IRQ_CONNECT.
Forward the "sense" property only conditionally to be able to
use the driver all drivers that don't define it.
Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
diff --git a/drivers/interrupt_controller/intc_shared_irq.c b/drivers/interrupt_controller/intc_shared_irq.c
index c210897..8678e88 100644
--- a/drivers/interrupt_controller/intc_shared_irq.c
+++ b/drivers/interrupt_controller/intc_shared_irq.c
@@ -159,7 +159,9 @@
DT_INST_IRQ(n, priority), \
shared_irq_isr, \
DEVICE_DT_INST_GET(n), \
- DT_INST_IRQ(n, sense)); \
+ COND_CODE_1(DT_INST_IRQ_HAS_CELL(n, sense), \
+ (DT_INST_IRQ(n, sense)), \
+ (0))); \
}
#define SHARED_IRQ_INIT(n) \