intc: loapic: convert DEVICE_DEFINE to DEVICE_DT_INST_DEFINE
Convert DEVICE_DEFINE to DEVICE_DT_INST_DEFINE, this allows the build system to track the device dependencies and ensure that the interrupt controller is initialized before other devices using it. Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
This commit is contained in:
parent
ceb02b3f31
commit
794893315a
|
@ -413,10 +413,10 @@ static int loapic_pm_action(const struct device *dev,
|
|||
}
|
||||
#endif /* CONFIG_PM_DEVICE */
|
||||
|
||||
PM_DEVICE_DEFINE(loapic, loapic_pm_action);
|
||||
PM_DEVICE_DT_INST_DEFINE(0, loapic_pm_action);
|
||||
|
||||
DEVICE_DEFINE(loapic, "loapic", loapic_init, PM_DEVICE_GET(loapic), NULL, NULL,
|
||||
PRE_KERNEL_1, CONFIG_INTC_INIT_PRIORITY, NULL);
|
||||
DEVICE_DT_INST_DEFINE(0, loapic_init, PM_DEVICE_DT_INST_GET(0), NULL, NULL,
|
||||
PRE_KERNEL_1, CONFIG_INTC_INIT_PRIORITY, NULL);
|
||||
|
||||
#if CONFIG_LOAPIC_SPURIOUS_VECTOR
|
||||
extern void z_loapic_spurious_handler(void);
|
||||
|
|
Loading…
Reference in a new issue