From 9af2789cad17924298d705b99a1bca5f35ea88e2 Mon Sep 17 00:00:00 2001 From: Adrian Warecki Date: Mon, 20 Feb 2023 12:13:38 +0100 Subject: [PATCH] watchdog: dw: Fixed interrupt configuration An invalid macro name was used to check whether the watchdog device has configured interrupts. As a result, the interrupt were never configured. This issue has been fixed. Signed-off-by: Adrian Warecki --- drivers/watchdog/wdt_dw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/watchdog/wdt_dw.c b/drivers/watchdog/wdt_dw.c index 66a6c6644c3..a31911c5572 100644 --- a/drivers/watchdog/wdt_dw.c +++ b/drivers/watchdog/wdt_dw.c @@ -209,7 +209,7 @@ static void dw_wdt_isr(const struct device *dev) } #define DW_WDT_INIT(inst) \ - IF_ENABLED(IS_INST_IRQ_EN(inst), (IRQ_CONFIG(inst))) \ + IF_ENABLED(WDT_IS_INST_IRQ_EN(inst), (IRQ_CONFIG(inst))) \ \ static const struct dw_wdt_dev_cfg wdt_dw##inst##_config = { \ .base = DT_INST_REG_ADDR(inst), \ @@ -218,7 +218,7 @@ static void dw_wdt_isr(const struct device *dev) (.clk_freq = DT_INST_PROP_BY_PHANDLE(inst, clocks, clock_frequency)) \ ), \ .reset_pulse_length = ilog2(DT_INST_PROP_OR(inst, reset_pulse_length, 2)) - 1, \ - IF_ENABLED(IS_INST_IRQ_EN(inst), \ + IF_ENABLED(WDT_IS_INST_IRQ_EN(inst), \ (.irq_config = dw_wdt##inst##_irq_config,) \ ) \ }; \