From e5d60d930cc328e773e14670f3b6c60f94b3e167 Mon Sep 17 00:00:00 2001 From: Zhao Liu Date: Tue, 29 Oct 2024 16:59:32 +0800 Subject: ui: 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-15-zhao1.liu@intel.com --- ui/console-vc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/console-vc.c') diff --git a/ui/console-vc.c b/ui/console-vc.c index 53fcee88f4..fe20579832 100644 --- a/ui/console-vc.c +++ b/ui/console-vc.c @@ -1073,6 +1073,6 @@ void qemu_console_early_init(void) { /* set the default vc driver */ if (!object_class_by_name(TYPE_CHARDEV_VC)) { - type_register(&char_vc_type_info); + type_register_static(&char_vc_type_info); } } -- cgit 1.4.1