aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-08-03 17:35:34 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-08-10 13:11:25 -0500
commit3180d77219deced6aa1c4c614a0aff1c67438385 (patch)
treeb9a9536ec73d61b9307d8b74a6162493d41608c0 /hw
parentbf2782d7d3e8ca5d91edea6ccaa3110e02cb2304 (diff)
downloadqemu-3180d77219deced6aa1c4c614a0aff1c67438385.zip
qemu-3180d77219deced6aa1c4c614a0aff1c67438385.tar.gz
qemu-3180d77219deced6aa1c4c614a0aff1c67438385.tar.bz2
qdev/prop: convert sparc32_dma.c to helper macros.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
Diffstat (limited to 'hw')
-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 800d5bc..7045453 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(),
}
};