Skip to content

Commit b6cd8d0

Browse files
Ajay Neelimichalsimek
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]> State: upstream (b7d13ea6ca7c9af25dc33c20f0f0a3f12643eb35)
1 parent 4eece95 commit b6cd8d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/serial/uart_xlnx_uartlite.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ static const struct uart_driver_api 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)