diff options
Diffstat (limited to 'hw/pc.c')
-rw-r--r-- | hw/pc.c | 20 |
1 files changed, 13 insertions, 7 deletions
@@ -497,13 +497,19 @@ static int port92_initfn(ISADevice *dev) return 0; } -static ISADeviceInfo port92_info = { - .qdev.name = "port92", - .qdev.size = sizeof(Port92State), - .qdev.vmsd = &vmstate_port92_isa, - .qdev.no_user = 1, - .qdev.reset = port92_reset, - .init = port92_initfn, +static void port92_class_initfn(ObjectClass *klass, void *data) +{ + ISADeviceClass *ic = ISA_DEVICE_CLASS(klass); + ic->init = port92_initfn; +} + +static DeviceInfo port92_info = { + .name = "port92", + .size = sizeof(Port92State), + .vmsd = &vmstate_port92_isa, + .no_user = 1, + .reset = port92_reset, + .class_init = port92_class_initfn, }; static void port92_register(void) |