hw/block: 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-3-zhao1.liu@intel.com
This commit is contained in:
Zhao Liu 2024-10-29 16:59:20 +08:00 committed by Paolo Bonzini
parent f345627668
commit 55398938b4

View file

@ -1894,7 +1894,7 @@ static void m25p80_register_types(void)
.class_init = m25p80_class_init,
.class_data = (void *)&known_devices[i],
};
type_register(&ti);
type_register_static(&ti);
}
}