mirror of
https://github.com/qemu/qemu.git
synced 2025-08-17 16:03:30 +00: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
@ -1774,7 +1774,7 @@ static void e1000_register_types(void)
|
|||||||
type_info.class_data = (void *)info;
|
type_info.class_data = (void *)info;
|
||||||
type_info.class_init = e1000_class_init;
|
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…
Reference in New Issue
Block a user