]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/bonito.c
qom: Unify type registration
[mirror_qemu.git] / hw / bonito.c
index 7350a4f9ec623bfd0cede608e3c3fc0c1dbac09f..77786f8883efc3253d9baeab6841313aca79ff9d 100644 (file)
@@ -804,9 +804,10 @@ static TypeInfo bonito_pcihost_info = {
     .class_init    = bonito_pcihost_class_init,
 };
 
-static void bonito_register(void)
+static void bonito_register_types(void)
 {
     type_register_static(&bonito_pcihost_info);
     type_register_static(&bonito_info);
 }
-device_init(bonito_register);
+
+type_init(bonito_register_types)