device: use DEVICE_INIT everwhere

This is the last step before obsoleting DEVICE_DEFINE() and
DEVICE_INIT_CONFIG_DEFINE().

Change-Id: Ica4257662969048083ab9839872b4b437b8b351b
Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
This commit is contained in:
Benjamin Walsh 2016-01-28 14:48:47 -05:00 committed by Anas Nashif
commit d340d4cb3f
57 changed files with 270 additions and 415 deletions

View file

@ -62,6 +62,6 @@ int _i8259_init(struct device *unused)
return 0;
}
DEVICE_INIT_CONFIG_DEFINE(pic_0, "", _i8259_init, NULL);
DEVICE_DEFINE(pic_0, NULL, PRIMARY,
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
DEVICE_INIT(pic_0, "", _i8259_init,
NULL, NULL,
PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);

View file

@ -314,6 +314,6 @@ static void _IoApicRedUpdateLo(unsigned int irq,
ioApicRedSetLo(irq, (ioApicRedGetLo(irq) & ~mask) | (value & mask));
}
DEVICE_INIT_CONFIG_DEFINE(ioapic_0, "", _ioapic_init, NULL);
DEVICE_DEFINE(ioapic_0, NULL, PRIMARY,
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
DEVICE_INIT(ioapic_0, "", _ioapic_init,
NULL, NULL,
PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);

View file

@ -444,9 +444,9 @@ int _loapic_isr_vector_get(void)
return 0;
}
DEVICE_INIT_CONFIG_DEFINE(loapic_0, "", _loapic_init, NULL);
DEVICE_DEFINE(loapic_0, NULL, PRIMARY,
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
DEVICE_INIT(loapic_0, "", _loapic_init,
NULL, NULL,
PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
#if CONFIG_LOAPIC_SPURIOUS_VECTOR
extern void _loapic_spurious_handler(void);