From b7d13ea6ca7c9af25dc33c20f0f0a3f12643eb35 Mon Sep 17 00:00:00 2001 From: Ajay Neeli Date: Tue, 28 Jan 2025 11:53:27 +0530 Subject: [PATCH] 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 --- drivers/serial/uart_xlnx_uartlite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/serial/uart_xlnx_uartlite.c b/drivers/serial/uart_xlnx_uartlite.c index 6ae60cf1d0be..8898ff678337 100644 --- a/drivers/serial/uart_xlnx_uartlite.c +++ b/drivers/serial/uart_xlnx_uartlite.c @@ -382,7 +382,7 @@ static DEVICE_API(uart, xlnx_uartlite_driver_api) = { xlnx_uartlite_isr, \ DEVICE_DT_INST_GET(n), 0); \ \ - irq_enable(DT_INST_IRQ_BY_IDX(n, i, irq)); \ + irq_enable(DT_INST_IRQN_BY_IDX(n, i)); \ } while (false) #define XLNX_UARTLITE_CONFIG_FUNC(n) \ static void xlnx_uartlite_config_func_##n(const struct device *dev) \