aboutsummaryrefslogtreecommitdiff
path: root/hw/sparc32_dma.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/sparc32_dma.c')
-rw-r--r--hw/sparc32_dma.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/hw/sparc32_dma.c b/hw/sparc32_dma.c
index 800d5bcfd4..7045453668 100644
--- a/hw/sparc32_dma.c
+++ b/hw/sparc32_dma.c
@@ -266,12 +266,8 @@ static SysBusDeviceInfo sparc32_dma_info = {
.qdev.name = "sparc32_dma",
.qdev.size = sizeof(DMAState),
.qdev.props = (Property[]) {
- {
- .name = "iommu_opaque",
- .info = &qdev_prop_ptr,
- .offset = offsetof(DMAState, iommu),
- },
- {/* end of property list */}
+ DEFINE_PROP_PTR("iommu_opaque", DMAState, iommu),
+ DEFINE_PROP_END_OF_LIST(),
}
};