summaryrefslogtreecommitdiff
path: root/hw/iommu.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/iommu.c')
-rw-r--r--hw/iommu.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/hw/iommu.c b/hw/iommu.c
index 585be8d3d8..52385f7fd1 100644
--- a/hw/iommu.c
+++ b/hw/iommu.c
@@ -386,12 +386,8 @@ static SysBusDeviceInfo iommu_info = {
.qdev.name = "iommu",
.qdev.size = sizeof(IOMMUState),
.qdev.props = (Property[]) {
- {
- .name = "version",
- .info = &qdev_prop_hex32,
- .offset = offsetof(IOMMUState, version),
- },
- {/* end of property list */}
+ DEFINE_PROP_HEX32("version", IOMMUState, version, 0),
+ DEFINE_PROP_END_OF_LIST(),
}
};