summary refs log tree commit diff stats
path: root/hw/usb/hcd-uhci.c
diff options
context:
space:
mode:
authorZhao Liu <zhao1.liu@intel.com>2024-10-29 16:59:26 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2024-12-10 18:49:25 +0100
commit220a81eb2f08c33eeb91deab4fd43bd2853313b9 (patch)
tree158f598a8240030a2124a7440f37783692ff9ab3 /hw/usb/hcd-uhci.c
parentbead9801750b8cd6da257cbf38ec184d40e02f47 (diff)
downloadfocaccia-qemu-220a81eb2f08c33eeb91deab4fd43bd2853313b9.tar.gz
focaccia-qemu-220a81eb2f08c33eeb91deab4fd43bd2853313b9.zip
hw/usb: Replace type_register() with type_register_static()
Replace type_register() with type_register_static() because
type_register() will be deprecated.

Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Link: https://lore.kernel.org/r/20241029085934.2799066-9-zhao1.liu@intel.com
Diffstat (limited to 'hw/usb/hcd-uhci.c')
-rw-r--r--hw/usb/hcd-uhci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/usb/hcd-uhci.c b/hw/usb/hcd-uhci.c
index 3d0339af7b..65c1f93cc9 100644
--- a/hw/usb/hcd-uhci.c
+++ b/hw/usb/hcd-uhci.c
@@ -1362,7 +1362,7 @@ static void uhci_register_types(void)
     for (i = 0; i < ARRAY_SIZE(uhci_info); i++) {
         uhci_type_info.name = uhci_info[i].name;
         uhci_type_info.class_data = uhci_info + i;
-        type_register(&uhci_type_info);
+        type_register_static(&uhci_type_info);
     }
 }