diff options
Diffstat (limited to 'hw/sga.c')
-rw-r--r-- | hw/sga.c | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -40,12 +40,17 @@ static int sga_initfn(ISADevice *dev) rom_add_vga(SGABIOS_FILENAME); return 0; } +static void sga_class_initfn(ObjectClass *klass, void *data) +{ + ISADeviceClass *ic = ISA_DEVICE_CLASS(klass); + ic->init = sga_initfn; +} -static ISADeviceInfo sga_info = { - .qdev.name = "sga", - .qdev.desc = "Serial Graphics Adapter", - .qdev.size = sizeof(ISASGAState), - .init = sga_initfn, +static DeviceInfo sga_info = { + .name = "sga", + .desc = "Serial Graphics Adapter", + .size = sizeof(ISASGAState), + .class_init = sga_class_initfn, }; static void sga_register(void) |