summary refs log tree commit diff stats
path: root/hw/misc/avr_power.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/misc/avr_power.c')
-rw-r--r--hw/misc/avr_power.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/misc/avr_power.c b/hw/misc/avr_power.c
index a5412f2cfe..ac7b96f53e 100644
--- a/hw/misc/avr_power.c
+++ b/hw/misc/avr_power.c
@@ -94,7 +94,7 @@ static void avr_mask_class_init(ObjectClass *klass, void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
-    dc->reset = avr_mask_reset;
+    device_class_set_legacy_reset(dc, avr_mask_reset);
 }
 
 static const TypeInfo avr_mask_info = {