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 <adrian.warecki@intel.com>
This commit is contained in:
parent
7f6d12b348
commit
9af2789cad
1 changed files with 2 additions and 2 deletions
|
@ -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,) \
|
||||
) \
|
||||
}; \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue