aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hw/eccmemctl.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/hw/eccmemctl.c b/hw/eccmemctl.c
index 2c6e4c61e4..a19a112386 100644
--- a/hw/eccmemctl.c
+++ b/hw/eccmemctl.c
@@ -340,13 +340,8 @@ static SysBusDeviceInfo ecc_info = {
.qdev.name = "eccmemctl",
.qdev.size = sizeof(ECCState),
.qdev.props = (Property[]) {
- {
- .name = "version",
- .info = &qdev_prop_hex32,
- .offset = offsetof(ECCState, version),
- .defval = (uint32_t[]) { -1 },
- },
- {/* end of list */}
+ DEFINE_PROP_HEX32("version", ECCState, version, -1),
+ DEFINE_PROP_END_OF_LIST(),
}
};