mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
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
This commit is contained in:
parent
dbeafa453b
commit
bead980175
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue