Message ID | 20241029085934.2799066-4-zhao1.liu@intel.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | qom/object: Deprecate type_register() | expand |
diff --git a/hw/net/e1000.c b/hw/net/e1000.c index 5012b964640d..ab72236d1831 100644 --- a/hw/net/e1000.c +++ b/hw/net/e1000.c @@ -1774,7 +1774,7 @@ static void e1000_register_types(void) type_info.class_data = (void *)info; type_info.class_init = e1000_class_init; - type_register(&type_info); + type_register_static(&type_info); } } diff --git a/hw/net/eepro100.c b/hw/net/eepro100.c index c8a88b9813f0..20b22d8e49cb 100644 --- a/hw/net/eepro100.c +++ b/hw/net/eepro100.c @@ -2102,7 +2102,7 @@ static void eepro100_register_types(void) { }, }; - type_register(&type_info); + type_register_static(&type_info); } }
Replace type_register() with type_register_static() because type_register() will be deprecated. Signed-off-by: Zhao Liu <zhao1.liu@intel.com> --- hw/net/e1000.c | 2 +- hw/net/eepro100.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)