]> git.proxmox.com Git - qemu.git/blobdiff - hw/piix_pci.c
qom: Unify type registration
[qemu.git] / hw / piix_pci.c
index 190642733f3fe9b164662538800b26d224839dbe..e0268fe053f8d0332aa0ecd90da07628ea572990 100644 (file)
@@ -589,11 +589,12 @@ static TypeInfo i440fx_pcihost_info = {
     .class_init    = i440fx_pcihost_class_init,
 };
 
-static void i440fx_register(void)
+static void i440fx_register_types(void)
 {
     type_register_static(&i440fx_info);
     type_register_static(&piix3_info);
     type_register_static(&piix3_xen_info);
     type_register_static(&i440fx_pcihost_info);
 }
-device_init(i440fx_register);
+
+type_init(i440fx_register_types)