mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-11 03:24:58 -06:00
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:
parent
da2608b7b6
commit
dbeafa453b
2 changed files with 2 additions and 2 deletions
|
@ -2576,7 +2576,7 @@ static void megasas_register_types(void)
|
||||||
type_info.class_init = megasas_class_init;
|
type_info.class_init = megasas_class_init;
|
||||||
type_info.interfaces = info->interfaces;
|
type_info.interfaces = info->interfaces;
|
||||||
|
|
||||||
type_register(&type_info);
|
type_register_static(&type_info);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1450,7 +1450,7 @@ static const TypeInfo mptsas_info = {
|
||||||
|
|
||||||
static void mptsas_register_types(void)
|
static void mptsas_register_types(void)
|
||||||
{
|
{
|
||||||
type_register(&mptsas_info);
|
type_register_static(&mptsas_info);
|
||||||
}
|
}
|
||||||
|
|
||||||
type_init(mptsas_register_types)
|
type_init(mptsas_register_types)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue