diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2009-08-03 17:35:34 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-08-10 13:11:25 -0500 |
commit | 3180d77219deced6aa1c4c614a0aff1c67438385 (patch) | |
tree | b9a9536ec73d61b9307d8b74a6162493d41608c0 /hw | |
parent | bf2782d7d3e8ca5d91edea6ccaa3110e02cb2304 (diff) |
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.c | 8 |
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(), } }; |