summary refs log tree commit diff stats
path: root/hw/gpio/nrf51_gpio.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/gpio/nrf51_gpio.c')
-rw-r--r--hw/gpio/nrf51_gpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/gpio/nrf51_gpio.c b/hw/gpio/nrf51_gpio.c
index ffc7dff796..0eed3a3a06 100644
--- a/hw/gpio/nrf51_gpio.c
+++ b/hw/gpio/nrf51_gpio.c
@@ -310,7 +310,7 @@ static void nrf51_gpio_class_init(ObjectClass *klass, void *data)
     DeviceClass *dc = DEVICE_CLASS(klass);
 
     dc->vmsd = &vmstate_nrf51_gpio;
-    dc->reset = nrf51_gpio_reset;
+    device_class_set_legacy_reset(dc, nrf51_gpio_reset);
     dc->desc = "nRF51 GPIO";
 }