diff options
Diffstat (limited to 'hw/ssi-sd.c')
-rw-r--r-- | hw/ssi-sd.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/hw/ssi-sd.c b/hw/ssi-sd.c index 2738cf9d77..f2e6cecb71 100644 --- a/hw/ssi-sd.c +++ b/hw/ssi-sd.c @@ -252,15 +252,16 @@ static void ssi_sd_class_init(ObjectClass *klass, void *data) k->transfer = ssi_sd_transfer; } -static DeviceInfo ssi_sd_info = { - .name = "ssi-sd", - .size = sizeof(ssi_sd_state), - .class_init = ssi_sd_class_init, +static TypeInfo ssi_sd_info = { + .name = "ssi-sd", + .parent = TYPE_SSI_SLAVE, + .instance_size = sizeof(ssi_sd_state), + .class_init = ssi_sd_class_init, }; static void ssi_sd_register_devices(void) { - ssi_register_slave(&ssi_sd_info); + type_register_static(&ssi_sd_info); } device_init(ssi_sd_register_devices) |