From 3180d77219deced6aa1c4c614a0aff1c67438385 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Mon, 3 Aug 2009 17:35:34 +0200 Subject: [PATCH] qdev/prop: convert sparc32_dma.c to helper macros. Signed-off-by: Gerd Hoffmann Signed-off-by: Anthony Liguori Message-Id: --- hw/sparc32_dma.c | 8 ++------ 1 file 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(), } }; -- 2.7.4