summary refs log tree commit diff stats
path: root/hw/net/can/ctucan_pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/net/can/ctucan_pci.c')
-rw-r--r--hw/net/can/ctucan_pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/net/can/ctucan_pci.c b/hw/net/can/ctucan_pci.c
index d8f7344ddc..65f1f82303 100644
--- a/hw/net/can/ctucan_pci.c
+++ b/hw/net/can/ctucan_pci.c
@@ -257,7 +257,7 @@ static void ctucan_pci_class_init(ObjectClass *klass, void *data)
     dc->desc = "CTU CAN PCI";
     dc->vmsd = &vmstate_ctucan_pci;
     set_bit(DEVICE_CATEGORY_MISC, dc->categories);
-    dc->reset = ctucan_pci_reset;
+    device_class_set_legacy_reset(dc, ctucan_pci_reset);
 }
 
 static const TypeInfo ctucan_pci_info = {