summary refs log tree commit diff stats
path: root/hw/net/allwinner_emac.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/net/allwinner_emac.c')
-rw-r--r--hw/net/allwinner_emac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/net/allwinner_emac.c b/hw/net/allwinner_emac.c
index e055a661c4..e9bbff8710 100644
--- a/hw/net/allwinner_emac.c
+++ b/hw/net/allwinner_emac.c
@@ -519,7 +519,7 @@ static void aw_emac_class_init(ObjectClass *klass, void *data)
     DeviceClass *dc = DEVICE_CLASS(klass);
 
     dc->realize = aw_emac_realize;
-    dc->props = aw_emac_properties;
+    device_class_set_props(dc, aw_emac_properties);
     dc->reset = aw_emac_reset;
     dc->vmsd = &vmstate_aw_emac;
 }