diff mbox

[18/32] qdev/prop: convert sparc32_dma.c to helper macros.

Message ID 1249313748-6459-19-git-send-email-kraxel@redhat.com
State Superseded
Headers show

Commit Message

Gerd Hoffmann Aug. 3, 2009, 3:35 p.m. UTC
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 hw/sparc32_dma.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)
diff mbox

Patch

diff --git a/hw/sparc32_dma.c b/hw/sparc32_dma.c
index 7633905..926fd32 100644
--- a/hw/sparc32_dma.c
+++ b/hw/sparc32_dma.c
@@ -286,12 +286,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(),
     }
 };