aboutsummaryrefslogtreecommitdiff
path: root/hw/net/allwinner-sun8i-emac.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/net/allwinner-sun8i-emac.c')
-rw-r--r--hw/net/allwinner-sun8i-emac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/net/allwinner-sun8i-emac.c b/hw/net/allwinner-sun8i-emac.c
index 108ae9c853..cdae74f503 100644
--- a/hw/net/allwinner-sun8i-emac.c
+++ b/hw/net/allwinner-sun8i-emac.c
@@ -881,7 +881,7 @@ static void allwinner_sun8i_emac_class_init(ObjectClass *klass, void *data)
DeviceClass *dc = DEVICE_CLASS(klass);
dc->realize = allwinner_sun8i_emac_realize;
- dc->reset = allwinner_sun8i_emac_reset;
+ device_class_set_legacy_reset(dc, allwinner_sun8i_emac_reset);
dc->vmsd = &vmstate_aw_emac;
device_class_set_props(dc, allwinner_sun8i_emac_properties);
}