diff options
Diffstat (limited to 'hw/empty_slot.c')
-rw-r--r-- | hw/empty_slot.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/hw/empty_slot.c b/hw/empty_slot.c index 70e45d0c29..1bc181555f 100644 --- a/hw/empty_slot.c +++ b/hw/empty_slot.c @@ -83,15 +83,16 @@ static void empty_slot_class_init(ObjectClass *klass, void *data) k->init = empty_slot_init1; } -static DeviceInfo empty_slot_info = { - .name = "empty_slot", - .size = sizeof(EmptySlot), - .class_init = empty_slot_class_init, +static TypeInfo empty_slot_info = { + .name = "empty_slot", + .parent = TYPE_SYS_BUS_DEVICE, + .instance_size = sizeof(EmptySlot), + .class_init = empty_slot_class_init, }; static void empty_slot_register_devices(void) { - sysbus_register_withprop(&empty_slot_info); + type_register_static(&empty_slot_info); } device_init(empty_slot_register_devices); |