diff options
Diffstat (limited to 'hw/bonito.c')
-rw-r--r-- | hw/bonito.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/hw/bonito.c b/hw/bonito.c index 23384ecb5b..0333a2ed8f 100644 --- a/hw/bonito.c +++ b/hw/bonito.c @@ -786,11 +786,18 @@ static DeviceInfo bonito_info = { .class_init = bonito_class_init, }; -static SysBusDeviceInfo bonito_pcihost_info = { - .init = bonito_pcihost_initfn, - .qdev.name = "Bonito-pcihost", - .qdev.size = sizeof(BonitoState), - .qdev.no_user = 1, +static void bonito_pcihost_class_init(ObjectClass *klass, void *data) +{ + SysBusDeviceClass *k = SYS_BUS_DEVICE_CLASS(klass); + + k->init = bonito_pcihost_initfn; +} + +static DeviceInfo bonito_pcihost_info = { + .name = "Bonito-pcihost", + .size = sizeof(BonitoState), + .no_user = 1, + .class_init = bonito_pcihost_class_init, }; static void bonito_register(void) |