diff options
Diffstat (limited to 'hw/realview_gic.c')
-rw-r--r-- | hw/realview_gic.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/hw/realview_gic.c b/hw/realview_gic.c index 7342edef69..0ccf21a23a 100644 --- a/hw/realview_gic.c +++ b/hw/realview_gic.c @@ -46,10 +46,22 @@ static int realview_gic_init(SysBusDevice *dev) return 0; } +static void realview_gic_class_init(ObjectClass *klass, void *data) +{ + SysBusDeviceClass *sdc = SYS_BUS_DEVICE_CLASS(klass); + + sdc->init = realview_gic_init; +} + +static DeviceInfo realview_gic_info = { + .name = "realview_gic", + .size = sizeof(RealViewGICState), + .class_init = realview_gic_class_init, +}; + static void realview_gic_register_devices(void) { - sysbus_register_dev("realview_gic", sizeof(RealViewGICState), - realview_gic_init); + sysbus_qdev_register(&realview_gic_info); } device_init(realview_gic_register_devices) |