diff options
Diffstat (limited to 'hw/smc91c111.c')
-rw-r--r-- | hw/smc91c111.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/hw/smc91c111.c b/hw/smc91c111.c index 4220880a0a..1bf2901d1a 100644 --- a/hw/smc91c111.c +++ b/hw/smc91c111.c @@ -765,23 +765,25 @@ static Property smc91c111_properties[] = { static void smc91c111_class_init(ObjectClass *klass, void *data) { + DeviceClass *dc = DEVICE_CLASS(klass); SysBusDeviceClass *k = SYS_BUS_DEVICE_CLASS(klass); k->init = smc91c111_init1; + dc->reset = smc91c111_reset; + dc->vmsd = &vmstate_smc91c111; + dc->props = smc91c111_properties; } -static DeviceInfo smc91c111_info = { - .name = "smc91c111", - .size = sizeof(smc91c111_state), - .vmsd = &vmstate_smc91c111, - .reset = smc91c111_reset, - .props = smc91c111_properties, - .class_init = smc91c111_class_init, +static TypeInfo smc91c111_info = { + .name = "smc91c111", + .parent = TYPE_SYS_BUS_DEVICE, + .instance_size = sizeof(smc91c111_state), + .class_init = smc91c111_class_init, }; static void smc91c111_register_devices(void) { - sysbus_register_withprop(&smc91c111_info); + type_register_static(&smc91c111_info); } /* Legacy helper function. Should go away when machine config files are |