aboutsummaryrefslogtreecommitdiff
path: root/tests/test-qdev-global-props.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-qdev-global-props.c')
-rw-r--r--tests/test-qdev-global-props.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-qdev-global-props.c b/tests/test-qdev-global-props.c
index 4ed3d06f4e..270c690479 100644
--- a/tests/test-qdev-global-props.c
+++ b/tests/test-qdev-global-props.c
@@ -55,7 +55,7 @@ static void static_prop_class_init(ObjectClass *oc, void *data)
DeviceClass *dc = DEVICE_CLASS(oc);
dc->realize = NULL;
- dc->props = static_props;
+ device_class_set_props(dc, static_props);
}
static const TypeInfo static_prop_type = {