summary refs log tree commit diff stats
path: root/hw/char/xilinx_uartlite.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/char/xilinx_uartlite.c')
-rw-r--r--hw/char/xilinx_uartlite.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/char/xilinx_uartlite.c b/hw/char/xilinx_uartlite.c
index 180bb97202..f325084f8b 100644
--- a/hw/char/xilinx_uartlite.c
+++ b/hw/char/xilinx_uartlite.c
@@ -234,7 +234,7 @@ static void xilinx_uartlite_class_init(ObjectClass *klass, void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
-    dc->reset = xilinx_uartlite_reset;
+    device_class_set_legacy_reset(dc, xilinx_uartlite_reset);
     dc->realize = xilinx_uartlite_realize;
     device_class_set_props(dc, xilinx_uartlite_properties);
 }