hw/scsi: 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-7-zhao1.liu@intel.com
This commit is contained in:
Zhao Liu 2024-10-29 16:59:24 +08:00 committed by Paolo Bonzini
parent da2608b7b6
commit dbeafa453b
2 changed files with 2 additions and 2 deletions

View file

@ -1450,7 +1450,7 @@ static const TypeInfo mptsas_info = {
static void mptsas_register_types(void)
{
type_register(&mptsas_info);
type_register_static(&mptsas_info);
}
type_init(mptsas_register_types)