summary refs log tree commit diff stats
path: root/hw/char/avr_usart.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/char/avr_usart.c')
-rw-r--r--hw/char/avr_usart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/char/avr_usart.c b/hw/char/avr_usart.c
index 5bcf9db0b7..24d26ad7a1 100644
--- a/hw/char/avr_usart.c
+++ b/hw/char/avr_usart.c
@@ -300,7 +300,7 @@ static void avr_usart_class_init(ObjectClass *klass, void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
-    dc->reset = avr_usart_reset;
+    device_class_set_legacy_reset(dc, avr_usart_reset);
     device_class_set_props(dc, avr_usart_properties);
     dc->realize = avr_usart_realize;
 }