aboutsummaryrefslogtreecommitdiff
path: root/hw/ppc/spapr_rng.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/ppc/spapr_rng.c')
-rw-r--r--hw/ppc/spapr_rng.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ppc/spapr_rng.c b/hw/ppc/spapr_rng.c
index 954e4aec4b..e8e8d65ec0 100644
--- a/hw/ppc/spapr_rng.c
+++ b/hw/ppc/spapr_rng.c
@@ -146,7 +146,7 @@ static void spapr_rng_class_init(ObjectClass *oc, void *data)
dc->realize = spapr_rng_realize;
set_bit(DEVICE_CATEGORY_MISC, dc->categories);
- dc->props = spapr_rng_properties;
+ device_class_set_props(dc, spapr_rng_properties);
dc->hotpluggable = false;
}