hw/ppc/mpc8544_guts: Prefer DEFINE_TYPES() macro
Reviewed-by: Cédric Le Goater <clg@redhat.com> Signed-off-by: Bernhard Beschow <shentey@gmail.com> Message-ID: <20241103133412.73536-19-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
This commit is contained in:
parent
c267da0e27
commit
0ab117f084
@ -18,7 +18,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "qemu/osdep.h"
|
#include "qemu/osdep.h"
|
||||||
#include "qemu/module.h"
|
|
||||||
#include "qemu/log.h"
|
#include "qemu/log.h"
|
||||||
#include "sysemu/runstate.h"
|
#include "sysemu/runstate.h"
|
||||||
#include "cpu.h"
|
#include "cpu.h"
|
||||||
@ -141,16 +140,13 @@ static void mpc8544_guts_initfn(Object *obj)
|
|||||||
sysbus_init_mmio(d, &s->iomem);
|
sysbus_init_mmio(d, &s->iomem);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const TypeInfo mpc8544_guts_info = {
|
static const TypeInfo mpc8544_guts_types[] = {
|
||||||
.name = TYPE_MPC8544_GUTS,
|
{
|
||||||
.parent = TYPE_SYS_BUS_DEVICE,
|
.name = TYPE_MPC8544_GUTS,
|
||||||
.instance_size = sizeof(GutsState),
|
.parent = TYPE_SYS_BUS_DEVICE,
|
||||||
.instance_init = mpc8544_guts_initfn,
|
.instance_size = sizeof(GutsState),
|
||||||
|
.instance_init = mpc8544_guts_initfn,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static void mpc8544_guts_register_types(void)
|
DEFINE_TYPES(mpc8544_guts_types)
|
||||||
{
|
|
||||||
type_register_static(&mpc8544_guts_info);
|
|
||||||
}
|
|
||||||
|
|
||||||
type_init(mpc8544_guts_register_types)
|
|
||||||
|
Loading…
Reference in New Issue
Block a user