mirror of https://github.com/xemu-project/xemu.git
hw/arm/smmuv3: Consolidate the use of device_class_set_parent_realize()
Use device_class_set_parent_realize() to set parent realize() directly. Signed-off-by: Zhao Liu <zhao1.liu@intel.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
6269aad730
commit
9953bf34ee
|
@ -1857,8 +1857,8 @@ static void smmuv3_class_init(ObjectClass *klass, void *data)
|
|||
dc->vmsd = &vmstate_smmuv3;
|
||||
resettable_class_set_parent_phases(rc, NULL, smmu_reset_hold, NULL,
|
||||
&c->parent_phases);
|
||||
c->parent_realize = dc->realize;
|
||||
dc->realize = smmu_realize;
|
||||
device_class_set_parent_realize(dc, smmu_realize,
|
||||
&c->parent_realize);
|
||||
device_class_set_props(dc, smmuv3_properties);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue