diff options
Diffstat (limited to 'hw/ssd0323.c')
-rw-r--r-- | hw/ssd0323.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/hw/ssd0323.c b/hw/ssd0323.c index 8e2fac8..3c43738 100644 --- a/hw/ssd0323.c +++ b/hw/ssd0323.c @@ -348,15 +348,16 @@ static void ssd0323_class_init(ObjectClass *klass, void *data) k->transfer = ssd0323_transfer; } -static DeviceInfo ssd0323_info = { - .name = "ssd0323", - .size = sizeof(ssd0323_state), - .class_init = ssd0323_class_init, +static TypeInfo ssd0323_info = { + .name = "ssd0323", + .parent = TYPE_SSI_SLAVE, + .instance_size = sizeof(ssd0323_state), + .class_init = ssd0323_class_init, }; static void ssd03232_register_devices(void) { - ssi_register_slave(&ssd0323_info); + type_register_static(&ssd0323_info); } device_init(ssd03232_register_devices) |