summary refs log tree commit diff stats
path: root/hw/timer/bcm2835_systmr.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/timer/bcm2835_systmr.c')
-rw-r--r--hw/timer/bcm2835_systmr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/timer/bcm2835_systmr.c b/hw/timer/bcm2835_systmr.c
index 3ec64604ee..2f0fee3342 100644
--- a/hw/timer/bcm2835_systmr.c
+++ b/hw/timer/bcm2835_systmr.c
@@ -159,7 +159,7 @@ static void bcm2835_systmr_class_init(ObjectClass *klass, void *data)
     DeviceClass *dc = DEVICE_CLASS(klass);
 
     dc->realize = bcm2835_systmr_realize;
-    dc->reset = bcm2835_systmr_reset;
+    device_class_set_legacy_reset(dc, bcm2835_systmr_reset);
     dc->vmsd = &bcm2835_systmr_vmstate;
 }