summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--hw/pcnet.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/hw/pcnet.c b/hw/pcnet.c
index 22ab6beaf3..637dcfbb53 100644
--- a/hw/pcnet.c
+++ b/hw/pcnet.c
@@ -2145,12 +2145,8 @@ static SysBusDeviceInfo lance_info = {
     .qdev.name  = "lance",
     .qdev.size  = sizeof(SysBusPCNetState),
     .qdev.props = (Property[]) {
-        {
-            .name   = "dma",
-            .info   = &qdev_prop_ptr,
-            .offset = offsetof(SysBusPCNetState, state.dma_opaque),
-        },
-        {/* end of list */}
+        DEFINE_PROP_PTR("dma", SysBusPCNetState, state.dma_opaque),
+        DEFINE_PROP_END_OF_LIST(),
     }
 };