device: rename DECLARE_DEVICE_INIT_CONFIG()
Rename it to DEVICE_INIT_CONFIG_DEFINE(), because (a) it was not fitting in any namespace and (b) it is not used to declare, but rather define a object. Change-Id: I1da5822f06b85a9fb024b5b184afd0ccc01012ec Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
This commit is contained in:
parent
bd18487727
commit
bfc27206b2
59 changed files with 88 additions and 88 deletions
|
@ -62,6 +62,6 @@ int _i8259_init(struct device *unused)
|
|||
return 0;
|
||||
}
|
||||
|
||||
DECLARE_DEVICE_INIT_CONFIG(pic_0, "", _i8259_init, NULL);
|
||||
DEVICE_INIT_CONFIG_DEFINE(pic_0, "", _i8259_init, NULL);
|
||||
SYS_DEFINE_DEVICE(pic_0, NULL, PRIMARY,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
|
||||
|
|
|
@ -314,6 +314,6 @@ static void _IoApicRedUpdateLo(unsigned int irq,
|
|||
ioApicRedSetLo(irq, (ioApicRedGetLo(irq) & ~mask) | (value & mask));
|
||||
}
|
||||
|
||||
DECLARE_DEVICE_INIT_CONFIG(ioapic_0, "", _ioapic_init, NULL);
|
||||
DEVICE_INIT_CONFIG_DEFINE(ioapic_0, "", _ioapic_init, NULL);
|
||||
SYS_DEFINE_DEVICE(ioapic_0, NULL, PRIMARY,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
|
||||
|
|
|
@ -444,7 +444,7 @@ int _loapic_isr_vector_get(void)
|
|||
return 0;
|
||||
}
|
||||
|
||||
DECLARE_DEVICE_INIT_CONFIG(loapic_0, "", _loapic_init, NULL);
|
||||
DEVICE_INIT_CONFIG_DEFINE(loapic_0, "", _loapic_init, NULL);
|
||||
SYS_DEFINE_DEVICE(loapic_0, NULL, PRIMARY,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue