]> git.proxmox.com Git - qemu.git/blobdiff - hw/usb-uhci.c
qom: Unify type registration
[qemu.git] / hw / usb-uhci.c
index cddcc8927a01885b1f92519a75dcbddd8abb02c7..6f6ebf16947e055baeaa7ebe7381f3d3ec615d42 100644 (file)
@@ -1321,7 +1321,7 @@ static TypeInfo ich9_uhci3_info = {
     .class_init    = ich9_uhci3_class_init,
 };
 
-static void uhci_register(void)
+static void uhci_register_types(void)
 {
     type_register_static(&piix3_uhci_info);
     type_register_static(&piix4_uhci_info);
@@ -1330,7 +1330,8 @@ static void uhci_register(void)
     type_register_static(&ich9_uhci2_info);
     type_register_static(&ich9_uhci3_info);
 }
-device_init(uhci_register);
+
+type_init(uhci_register_types)
 
 void usb_uhci_piix3_init(PCIBus *bus, int devfn)
 {