From: Zhao Liu Date: Tue, 29 Oct 2024 08:59:20 +0000 (+0800) Subject: hw/block: Replace type_register() with type_register_static() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=55398938b427aa430d70f576f8240fe5977a44a7;p=qemu.git hw/block: 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 Signed-off-by: Paolo Bonzini Link: https://lore.kernel.org/r/20241029085934.2799066-3-zhao1.liu@intel.com --- diff --git a/hw/block/m25p80.c b/hw/block/m25p80.c index e2e84f8b5f..748594524e 100644 --- a/hw/block/m25p80.c +++ b/hw/block/m25p80.c @@ -1894,7 +1894,7 @@ static void m25p80_register_types(void) .class_init = m25p80_class_init, .class_data = (void *)&known_devices[i], }; - type_register(&ti); + type_register_static(&ti); } }