summary refs log tree commit diff stats
path: root/hw/nvram/nrf51_nvm.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/nvram/nrf51_nvm.c')
-rw-r--r--hw/nvram/nrf51_nvm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/nvram/nrf51_nvm.c b/hw/nvram/nrf51_nvm.c
index 73564f7e6e..b1f81752a3 100644
--- a/hw/nvram/nrf51_nvm.c
+++ b/hw/nvram/nrf51_nvm.c
@@ -378,7 +378,7 @@ static void nrf51_nvm_class_init(ObjectClass *klass, void *data)
     device_class_set_props(dc, nrf51_nvm_properties);
     dc->vmsd = &vmstate_nvm;
     dc->realize = nrf51_nvm_realize;
-    dc->reset = nrf51_nvm_reset;
+    device_class_set_legacy_reset(dc, nrf51_nvm_reset);
 }
 
 static const TypeInfo nrf51_nvm_info = {