drivers: interrupt_controller: Refactor drivers to use shared init prio
Refactors interrupt controller drivers to use the shared driver class initialization priority configuration, CONFIG_INTC_INIT_PRIORITY, to allow configuring interrupt controller drivers separately from other devices. This is similar to other driver classes. The default is set to CONFIG_KERNEL_INIT_PRIORITY_DEFAULT to preserve the existing default initialization priority for most drivers. Signed-off-by: Maureen Helm <maureen.helm@intel.com>
This commit is contained in:
parent
d00f9e8774
commit
41634c82cc
16 changed files with 22 additions and 16 deletions
|
@ -422,7 +422,7 @@ static int loapic_pm_action(const struct device *dev,
|
|||
PM_DEVICE_DEFINE(loapic, loapic_pm_action);
|
||||
|
||||
DEVICE_DEFINE(loapic, "loapic", loapic_init, PM_DEVICE_GET(loapic), NULL, NULL,
|
||||
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, NULL);
|
||||
PRE_KERNEL_1, CONFIG_INTC_INIT_PRIORITY, NULL);
|
||||
|
||||
#if CONFIG_LOAPIC_SPURIOUS_VECTOR
|
||||
extern void z_loapic_spurious_handler(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue