summary refs log tree commit diff stats
path: root/hw/timer/nrf51_timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/timer/nrf51_timer.c')
-rw-r--r--hw/timer/nrf51_timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/timer/nrf51_timer.c b/hw/timer/nrf51_timer.c
index a33166a881..35b0e62d5b 100644
--- a/hw/timer/nrf51_timer.c
+++ b/hw/timer/nrf51_timer.c
@@ -388,7 +388,7 @@ static void nrf51_timer_class_init(ObjectClass *klass, void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
-    dc->reset = nrf51_timer_reset;
+    device_class_set_legacy_reset(dc, nrf51_timer_reset);
     dc->vmsd = &vmstate_nrf51_timer;
     device_class_set_props(dc, nrf51_timer_properties);
 }