mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
hw/intc/omap_intc: Remove now-unnecessary abstract base class
The OMAP interrupt controller code used to have an omap-intc class and an omap2-intc class, which shared common code via the abstract class common-omap-intc. Now we have deleted omap2-intc, we don't need the separate abstract base class; fold int into omap-intc. Suggested-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-id: 20241003135323.1653230-1-peter.maydell@linaro.org
This commit is contained in:
parent
3341d1cb37
commit
85a2567068
2 changed files with 4 additions and 11 deletions
|
@ -392,22 +392,15 @@ static void omap_intc_class_init(ObjectClass *klass, void *data)
|
|||
}
|
||||
|
||||
static const TypeInfo omap_intc_info = {
|
||||
.name = "omap-intc",
|
||||
.parent = TYPE_OMAP_INTC,
|
||||
.name = TYPE_OMAP_INTC,
|
||||
.parent = TYPE_SYS_BUS_DEVICE,
|
||||
.instance_size = sizeof(OMAPIntcState),
|
||||
.instance_init = omap_intc_init,
|
||||
.class_init = omap_intc_class_init,
|
||||
};
|
||||
|
||||
static const TypeInfo omap_intc_type_info = {
|
||||
.name = TYPE_OMAP_INTC,
|
||||
.parent = TYPE_SYS_BUS_DEVICE,
|
||||
.instance_size = sizeof(OMAPIntcState),
|
||||
.abstract = true,
|
||||
};
|
||||
|
||||
static void omap_intc_register_types(void)
|
||||
{
|
||||
type_register_static(&omap_intc_type_info);
|
||||
type_register_static(&omap_intc_info);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue