diff options
| author | Zhao Liu <zhao1.liu@intel.com> | 2024-10-29 16:59:32 +0800 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-12-10 18:49:25 +0100 |
| commit | e5d60d930cc328e773e14670f3b6c60f94b3e167 (patch) | |
| tree | 58010b4e3810d0de8cbfa528411233d885f00de3 /ui/console-vc.c | |
| parent | 2780dd6acbed68b1abacc54b1ade0e883bbbb371 (diff) | |
| download | focaccia-qemu-e5d60d930cc328e773e14670f3b6c60f94b3e167.tar.gz focaccia-qemu-e5d60d930cc328e773e14670f3b6c60f94b3e167.zip | |
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 <zhao1.liu@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Link: https://lore.kernel.org/r/20241029085934.2799066-15-zhao1.liu@intel.com
Diffstat (limited to 'ui/console-vc.c')
| -rw-r--r-- | ui/console-vc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } |