diff options
| author | Zhao Liu <zhao1.liu@intel.com> | 2024-10-29 16:59:21 +0800 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-12-10 18:49:24 +0100 |
| commit | 29ec04f08933702f7916ce2ffd03e87aee203fb9 (patch) | |
| tree | c39db45ff3012f5f60ef4f27d89afb058671551d /hw/net/e1000.c | |
| parent | 55398938b427aa430d70f576f8240fe5977a44a7 (diff) | |
| download | focaccia-qemu-29ec04f08933702f7916ce2ffd03e87aee203fb9.tar.gz focaccia-qemu-29ec04f08933702f7916ce2ffd03e87aee203fb9.zip | |
hw/net: 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-4-zhao1.liu@intel.com
Diffstat (limited to 'hw/net/e1000.c')
| -rw-r--r-- | hw/net/e1000.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/net/e1000.c b/hw/net/e1000.c index 5012b96464..ab72236d18 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); } } |