summary refs log tree commit diff stats
path: root/hw/misc/macio/gpio.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/misc/macio/gpio.c')
-rw-r--r--hw/misc/macio/gpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/misc/macio/gpio.c b/hw/misc/macio/gpio.c
index 549563747d..7cad62819a 100644
--- a/hw/misc/macio/gpio.c
+++ b/hw/misc/macio/gpio.c
@@ -194,7 +194,7 @@ static void macio_gpio_class_init(ObjectClass *oc, void *data)
     DeviceClass *dc = DEVICE_CLASS(oc);
     NMIClass *nc = NMI_CLASS(oc);
 
-    dc->reset = macio_gpio_reset;
+    device_class_set_legacy_reset(dc, macio_gpio_reset);
     dc->vmsd = &vmstate_macio_gpio;
     nc->nmi_monitor_handler = macio_gpio_nmi;
 }