aboutsummaryrefslogtreecommitdiff
path: root/hw/misc/nrf51_rng.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/misc/nrf51_rng.c')
-rw-r--r--hw/misc/nrf51_rng.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/misc/nrf51_rng.c b/hw/misc/nrf51_rng.c
index 2d76c45..bf1eb0c 100644
--- a/hw/misc/nrf51_rng.c
+++ b/hw/misc/nrf51_rng.c
@@ -247,7 +247,7 @@ static void nrf51_rng_class_init(ObjectClass *klass, void *data)
device_class_set_props(dc, nrf51_rng_properties);
dc->vmsd = &vmstate_rng;
- dc->reset = nrf51_rng_reset;
+ device_class_set_legacy_reset(dc, nrf51_rng_reset);
}
static const TypeInfo nrf51_rng_info = {