summaryrefslogtreecommitdiffstats
path: root/hw/ppc
diff options
context:
space:
mode:
authorAlexey Kardashevskiy2014-05-27 07:36:34 +0200
committerAlexander Graf2014-06-16 13:24:39 +0200
commite4c35b78bce645aaa299d3b7b62494c880c6c74d (patch)
tree90e2c080f6640ea9771780eb2cbc1ee784803d8b /hw/ppc
parentspapr_pci: Allow multiple TCE tables per PHB (diff)
downloadqemu-e4c35b78bce645aaa299d3b7b62494c880c6c74d.tar.gz
qemu-e4c35b78bce645aaa299d3b7b62494c880c6c74d.tar.xz
qemu-e4c35b78bce645aaa299d3b7b62494c880c6c74d.zip
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>
Diffstat (limited to 'hw/ppc')
-rw-r--r--hw/ppc/spapr_iommu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ppc/spapr_iommu.c b/hw/ppc/spapr_iommu.c
index 2d50faf698..e5fd0882f9 100644
--- a/hw/ppc/spapr_iommu.c
+++ b/hw/ppc/spapr_iommu.c
@@ -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;
}