From 668724a78419ce319d5b255ec8cb85a3e9f8594d Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Mon, 3 Aug 2009 17:35:27 +0200 Subject: [PATCH] qdev/prop: convert iommu.c to helper macros. Signed-off-by: Gerd Hoffmann Signed-off-by: Anthony Liguori Message-Id: --- hw/iommu.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/hw/iommu.c b/hw/iommu.c index 585be8d3d8..52385f7fd1 100644 --- a/hw/iommu.c +++ b/hw/iommu.c @@ -386,12 +386,8 @@ static SysBusDeviceInfo iommu_info = { .qdev.name = "iommu", .qdev.size = sizeof(IOMMUState), .qdev.props = (Property[]) { - { - .name = "version", - .info = &qdev_prop_hex32, - .offset = offsetof(IOMMUState, version), - }, - {/* end of property list */} + DEFINE_PROP_HEX32("version", IOMMUState, version, 0), + DEFINE_PROP_END_OF_LIST(), } };