aboutsummaryrefslogtreecommitdiff
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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/misc/avr_power.c b/hw/misc/avr_power.c
index a5412f2..411f016 100644
--- a/hw/misc/avr_power.c
+++ b/hw/misc/avr_power.c
@@ -90,11 +90,11 @@ static void avr_mask_init(Object *dev)
s->val = 0x00;
}
-static void avr_mask_class_init(ObjectClass *klass, void *data)
+static void avr_mask_class_init(ObjectClass *klass, const 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 = {