ppc/xive2: Make type Xive2EndSource not user creatable
Xive2EndSource objects can only be instantiated through a Xive2Router
(PnvXive2).
Reported-by: Thomas Huth <thuth@redhat.com>
Fixes: f8a233dedf
("ppc/xive2: Introduce a XIVE2 core framework")
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
This commit is contained in:
parent
52d324ff13
commit
5d927bceaf
|
@ -1000,6 +1000,7 @@ static void xive2_end_source_class_init(ObjectClass *klass, void *data)
|
||||||
dc->desc = "XIVE END Source";
|
dc->desc = "XIVE END Source";
|
||||||
device_class_set_props(dc, xive2_end_source_properties);
|
device_class_set_props(dc, xive2_end_source_properties);
|
||||||
dc->realize = xive2_end_source_realize;
|
dc->realize = xive2_end_source_realize;
|
||||||
|
dc->user_creatable = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const TypeInfo xive2_end_source_info = {
|
static const TypeInfo xive2_end_source_info = {
|
||||||
|
|
Loading…
Reference in New Issue