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:
Zhao Liu 2024-10-29 16:59:21 +08:00 committed by Paolo Bonzini
parent 55398938b4
commit 29ec04f089
2 changed files with 2 additions and 2 deletions

View file

@ -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);
}
}

View file

@ -2102,7 +2102,7 @@ static void eepro100_register_types(void)
{ },
};
type_register(&type_info);
type_register_static(&type_info);
}
}