Skip to content

Commit b7d13ea

Browse files
Ajay Neelikartben
Ajay Neeli
authored andcommitted
serial: xilinx: uartlite: update irq_enable to use DT_INST_IRQN_BY_IDX
Update the irq_enable macro to use the DT_INST_IRQN_BY_IDX helper. This ensures proper handling of IRQ numbers in systems with multi-level interrupt configurations. Signed-off-by: Ajay Neeli <[email protected]>
1 parent 1237c86 commit b7d13ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/serial/uart_xlnx_uartlite.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ static DEVICE_API(uart, xlnx_uartlite_driver_api) = {
382382
xlnx_uartlite_isr, \
383383
DEVICE_DT_INST_GET(n), 0); \
384384
\
385-
irq_enable(DT_INST_IRQ_BY_IDX(n, i, irq)); \
385+
irq_enable(DT_INST_IRQN_BY_IDX(n, i)); \
386386
} while (false)
387387
#define XLNX_UARTLITE_CONFIG_FUNC(n) \
388388
static void xlnx_uartlite_config_func_##n(const struct device *dev) \

0 commit comments

Comments
 (0)