summary refs log tree commit diff stats
path: root/hw/dma/xlnx-zynq-devcfg.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/dma/xlnx-zynq-devcfg.c')
-rw-r--r--hw/dma/xlnx-zynq-devcfg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/dma/xlnx-zynq-devcfg.c b/hw/dma/xlnx-zynq-devcfg.c
index e901f68ff3..b8544d0731 100644
--- a/hw/dma/xlnx-zynq-devcfg.c
+++ b/hw/dma/xlnx-zynq-devcfg.c
@@ -384,7 +384,7 @@ static void xlnx_zynq_devcfg_class_init(ObjectClass *klass, void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
-    dc->reset = xlnx_zynq_devcfg_reset;
+    device_class_set_legacy_reset(dc, xlnx_zynq_devcfg_reset);
     dc->vmsd = &vmstate_xlnx_zynq_devcfg;
 }