Skip to content

Commit 9953bf3

Browse files
trueptolemyMichael Tokarev
authored andcommitted
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 <[email protected]> Reviewed-by: Thomas Huth <[email protected]> Signed-off-by: Michael Tokarev <[email protected]>
1 parent 6269aad commit 9953bf3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hw/arm/smmuv3.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1857,8 +1857,8 @@ static void smmuv3_class_init(ObjectClass *klass, void *data)
18571857
dc->vmsd = &vmstate_smmuv3;
18581858
resettable_class_set_parent_phases(rc, NULL, smmu_reset_hold, NULL,
18591859
&c->parent_phases);
1860-
c->parent_realize = dc->realize;
1861-
dc->realize = smmu_realize;
1860+
device_class_set_parent_realize(dc, smmu_realize,
1861+
&c->parent_realize);
18621862
device_class_set_props(dc, smmuv3_properties);
18631863
}
18641864

0 commit comments

Comments
 (0)