spapr_iommu: Convert old qdev_init_nofail() to object_property_set_bool
qdev_init_nofail() was replaced by object_property_set_bool("realized") all over the QEMU so do we. Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
e28c16f61f
commit
e4c35b78bc
@ -165,7 +165,7 @@ sPAPRTCETable *spapr_tce_new_table(DeviceState *owner, uint32_t liobn, size_t wi
|
||||
|
||||
object_property_add_child(OBJECT(owner), "tce-table", OBJECT(tcet), NULL);
|
||||
|
||||
qdev_init_nofail(DEVICE(tcet));
|
||||
object_property_set_bool(OBJECT(tcet), true, "realized", NULL);
|
||||
|
||||
return tcet;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user