summary refs log tree commit diff stats
path: root/hw/dma/xlnx_dpdma.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/dma/xlnx_dpdma.c')
-rw-r--r--hw/dma/xlnx_dpdma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/dma/xlnx_dpdma.c b/hw/dma/xlnx_dpdma.c
index a685bd28bb..2657808d37 100644
--- a/hw/dma/xlnx_dpdma.c
+++ b/hw/dma/xlnx_dpdma.c
@@ -598,7 +598,7 @@ static void xlnx_dpdma_class_init(ObjectClass *oc, void *data)
     DeviceClass *dc = DEVICE_CLASS(oc);
 
     dc->vmsd = &vmstate_xlnx_dpdma;
-    dc->reset = xlnx_dpdma_reset;
+    device_class_set_legacy_reset(dc, xlnx_dpdma_reset);
 }
 
 static const TypeInfo xlnx_dpdma_info = {