diff options
author | Zhao Liu <zhao1.liu@intel.com> | 2024-10-29 16:59:25 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-12-10 18:49:25 +0100 |
commit | bead9801750b8cd6da257cbf38ec184d40e02f47 (patch) | |
tree | ff7b5651125e0c1dedc0f41736a002199b7e9f03 | |
parent | dbeafa453baec78a9f77580f83177f4fdfad6852 (diff) | |
download | qemu-bead9801750b8cd6da257cbf38ec184d40e02f47.zip qemu-bead9801750b8cd6da257cbf38ec184d40e02f47.tar.gz qemu-bead9801750b8cd6da257cbf38ec184d40e02f47.tar.bz2 |
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 <zhao1.liu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Link: https://lore.kernel.org/r/20241029085934.2799066-8-zhao1.liu@intel.com
-rw-r--r-- | hw/sensor/tmp421.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/sensor/tmp421.c b/hw/sensor/tmp421.c index b6f0b62..82e6042 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); } } |