mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
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
This commit is contained in:
parent
55398938b4
commit
29ec04f089
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -2102,7 +2102,7 @@ static void eepro100_register_types(void)
|
|||
{ },
|
||||
};
|
||||
|
||||
type_register(&type_info);
|
||||
type_register_static(&type_info);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue