mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
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
This commit is contained in:
parent
bead980175
commit
220a81eb2f
2 changed files with 2 additions and 2 deletions
|
@ -228,7 +228,7 @@ static void ehci_pci_register_types(void)
|
||||||
for (i = 0; i < ARRAY_SIZE(ehci_pci_info); i++) {
|
for (i = 0; i < ARRAY_SIZE(ehci_pci_info); i++) {
|
||||||
ehci_type_info.name = ehci_pci_info[i].name;
|
ehci_type_info.name = ehci_pci_info[i].name;
|
||||||
ehci_type_info.class_data = ehci_pci_info + i;
|
ehci_type_info.class_data = ehci_pci_info + i;
|
||||||
type_register(&ehci_type_info);
|
type_register_static(&ehci_type_info);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1362,7 +1362,7 @@ static void uhci_register_types(void)
|
||||||
for (i = 0; i < ARRAY_SIZE(uhci_info); i++) {
|
for (i = 0; i < ARRAY_SIZE(uhci_info); i++) {
|
||||||
uhci_type_info.name = uhci_info[i].name;
|
uhci_type_info.name = uhci_info[i].name;
|
||||||
uhci_type_info.class_data = uhci_info + i;
|
uhci_type_info.class_data = uhci_info + i;
|
||||||
type_register(&uhci_type_info);
|
type_register_static(&uhci_type_info);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue