summary refs log tree commit diff stats
path: root/hw/net/sunhme.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/net/sunhme.c')
-rw-r--r--hw/net/sunhme.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/net/sunhme.c b/hw/net/sunhme.c
index ae8452e5f9..0e6c655a5b 100644
--- a/hw/net/sunhme.c
+++ b/hw/net/sunhme.c
@@ -948,7 +948,7 @@ static void sunhme_class_init(ObjectClass *klass, void *data)
     k->device_id = PCI_DEVICE_ID_SUN_HME;
     k->class_id = PCI_CLASS_NETWORK_ETHERNET;
     dc->vmsd = &vmstate_hme;
-    dc->reset = sunhme_reset;
+    device_class_set_legacy_reset(dc, sunhme_reset);
     device_class_set_props(dc, sunhme_properties);
     set_bit(DEVICE_CATEGORY_NETWORK, dc->categories);
 }