soc: riscv: openisa_rv32m1: Convert to new dts macros
Convert from DT_OPENISA_RV32M1_INTMUX_INTMUX_LABEL to DT_LABEL(DT_INST(0, openisa_rv32m1_intmux)). Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
a918d301fe
commit
5a31ee2175
1 changed files with 2 additions and 1 deletions
|
@ -146,7 +146,8 @@ void soc_interrupt_init(void)
|
||||||
(void)(EVENT_UNIT->EVTPENDCLEAR); /* Ensures write has finished. */
|
(void)(EVENT_UNIT->EVTPENDCLEAR); /* Ensures write has finished. */
|
||||||
|
|
||||||
if (IS_ENABLED(CONFIG_MULTI_LEVEL_INTERRUPTS)) {
|
if (IS_ENABLED(CONFIG_MULTI_LEVEL_INTERRUPTS)) {
|
||||||
dev_intmux = device_get_binding(DT_OPENISA_RV32M1_INTMUX_INTMUX_LABEL);
|
dev_intmux = device_get_binding(
|
||||||
|
DT_LABEL(DT_INST(0, openisa_rv32m1_intmux)));
|
||||||
__ASSERT(dev_intmux, "no INTMUX device found");
|
__ASSERT(dev_intmux, "no INTMUX device found");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue