From: Zhao Liu Date: Tue, 29 Oct 2024 08:59:25 +0000 (+0800) Subject: hw/sensor: Replace type_register() with type_register_static() X-Git-Tag: v10.0.0-rc0~123^2~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bead9801750b8cd6da257cbf38ec184d40e02f47;p=thirdparty%2Fqemu.git hw/sensor: 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-8-zhao1.liu@intel.com --- diff --git a/hw/sensor/tmp421.c b/hw/sensor/tmp421.c index b6f0b62ab11..82e604279c5 100644 --- a/hw/sensor/tmp421.c +++ b/hw/sensor/tmp421.c @@ -384,7 +384,7 @@ static void tmp421_register_types(void) .class_init = tmp421_class_init, .class_data = (void *) &devices[i], }; - type_register(&ti); + type_register_static(&ti); } }