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 authored and Paolo Bonzini committed 2024-12-10 18:49:24 +01:00
1 parent 55398938b4
commit 29ec04f089
2 files changed
+2 -2

No files matched your search

+1 -1
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);
}
}
+1 -1
View File
@@ -2102,7 +2102,7 @@ static void eepro100_register_types(void)
{ },
};
type_register(&type_info);
type_register_static(&type_info);
}
}