On Tue, 28 Jan 2025 at 18:51, Richard Henderson <richard.hender...@linaro.org> wrote: > > On 1/28/25 02:45, Peter Maydell wrote: > > +static const TypeInfo omap_mmc_info = { > > + .name = TYPE_OMAP_MMC, > > + .parent = TYPE_SYS_BUS_DEVICE, > > + .instance_size = sizeof(OMAPMMCState), > > + .instance_init = omap_mmc_initfn, > > + .class_init = omap_mmc_class_init, > > +}; > > + > > +static void omap_mmc_register_types(void) > > +{ > > + type_register_static(&omap_mmc_info); > > +} > > + > > +type_init(omap_mmc_register_types) > > Phil seems to be moving everything to DEFINE_TYPES now.
I looked at that, but it wants an array of TypeInfo, and this is just one. So I did it this way instead. -- PMM