mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-15 22:21:57 -06:00
hw/display: Have RAMFB device inherit from DYNAMIC_SYS_BUS_DEVICE
Because the RAM FB device can be optionally plugged on the TYPE_PLATFORM_BUS_DEVICE, have it inherit TYPE_DYNAMIC_SYS_BUS_DEVICE. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Alexander Graf <graf@amazon.com> Reviewed-by: Clément Mathieu--Drif <clement.mathieu--drif@eviden.com> Message-Id: <20250125181343.59151-6-philmd@linaro.org>
This commit is contained in:
parent
341df541dc
commit
8abda739f3
1 changed files with 1 additions and 2 deletions
|
@ -72,13 +72,12 @@ static void ramfb_class_initfn(ObjectClass *klass, void *data)
|
||||||
dc->vmsd = &ramfb_dev_vmstate;
|
dc->vmsd = &ramfb_dev_vmstate;
|
||||||
dc->realize = ramfb_realizefn;
|
dc->realize = ramfb_realizefn;
|
||||||
dc->desc = "ram framebuffer standalone device";
|
dc->desc = "ram framebuffer standalone device";
|
||||||
dc->user_creatable = true;
|
|
||||||
device_class_set_props(dc, ramfb_properties);
|
device_class_set_props(dc, ramfb_properties);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const TypeInfo ramfb_info = {
|
static const TypeInfo ramfb_info = {
|
||||||
.name = TYPE_RAMFB_DEVICE,
|
.name = TYPE_RAMFB_DEVICE,
|
||||||
.parent = TYPE_SYS_BUS_DEVICE,
|
.parent = TYPE_DYNAMIC_SYS_BUS_DEVICE,
|
||||||
.instance_size = sizeof(RAMFBStandaloneState),
|
.instance_size = sizeof(RAMFBStandaloneState),
|
||||||
.class_init = ramfb_class_initfn,
|
.class_init = ramfb_class_initfn,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue