diff options
author | Zhao Liu <zhao1.liu@intel.com> | 2024-02-01 16:40:27 +0800 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2024-02-13 10:59:25 +0300 |
commit | 9953bf34ee84f1c9b92fb4ab0aa698f9a76cfce6 (patch) | |
tree | 346d5f8a0279f72c15974d479135eca9781272a9 | |
parent | 6269aad730d52aadf86661d58e985362f5ade508 (diff) | |
download | qemu-9953bf34ee84f1c9b92fb4ab0aa698f9a76cfce6.zip qemu-9953bf34ee84f1c9b92fb4ab0aa698f9a76cfce6.tar.gz qemu-9953bf34ee84f1c9b92fb4ab0aa698f9a76cfce6.tar.bz2 |
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>
-rw-r--r-- | hw/arm/smmuv3.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/arm/smmuv3.c b/hw/arm/smmuv3.c index 68eeef3..b3d8642 100644 --- a/hw/arm/smmuv3.c +++ b/hw/arm/smmuv3.c @@ -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); } |