summary refs log tree commit diff stats
path: root/hw/timer/a9gtimer.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/timer/a9gtimer.c')
-rw-r--r--hw/timer/a9gtimer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/timer/a9gtimer.c b/hw/timer/a9gtimer.c
index 64d80cdf6a..8091ec18c7 100644
--- a/hw/timer/a9gtimer.c
+++ b/hw/timer/a9gtimer.c
@@ -384,7 +384,7 @@ static void a9_gtimer_class_init(ObjectClass *klass, void *data)
 
     dc->realize = a9_gtimer_realize;
     dc->vmsd = &vmstate_a9_gtimer;
-    dc->reset = a9_gtimer_reset;
+    device_class_set_legacy_reset(dc, a9_gtimer_reset);
     device_class_set_props(dc, a9_gtimer_properties);
 }