Message ID | 20241029085934.2799066-7-zhao1.liu@intel.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | qom/object: Deprecate type_register() | expand |
diff --git a/hw/scsi/megasas.c b/hw/scsi/megasas.c index 221b06d6aaf6..b72d2f8cdf39 100644 --- a/hw/scsi/megasas.c +++ b/hw/scsi/megasas.c @@ -2586,7 +2586,7 @@ static void megasas_register_types(void) type_info.class_init = megasas_class_init; type_info.interfaces = info->interfaces; - type_register(&type_info); + type_register_static(&type_info); } } diff --git a/hw/scsi/mptsas.c b/hw/scsi/mptsas.c index 361b75e633ae..c6bc3479e997 100644 --- a/hw/scsi/mptsas.c +++ b/hw/scsi/mptsas.c @@ -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)
Replace type_register() with type_register_static() because\ type_register() will be deprecated. Signed-off-by: Zhao Liu <zhao1.liu@intel.com> --- hw/scsi/megasas.c | 2 +- hw/scsi/mptsas.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)