summary refs log tree commit diff stats
path: root/hw/char/nrf51_uart.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/char/nrf51_uart.c')
-rw-r--r--hw/char/nrf51_uart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/char/nrf51_uart.c b/hw/char/nrf51_uart.c
index c2cd6bb5e7..04da3f8d97 100644
--- a/hw/char/nrf51_uart.c
+++ b/hw/char/nrf51_uart.c
@@ -313,7 +313,7 @@ static void nrf51_uart_class_init(ObjectClass *klass, void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
-    dc->reset = nrf51_uart_reset;
+    device_class_set_legacy_reset(dc, nrf51_uart_reset);
     dc->realize = nrf51_uart_realize;
     device_class_set_props(dc, nrf51_uart_properties);
     dc->vmsd = &nrf51_uart_vmstate;