aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-08-03 17:35:27 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-08-10 13:05:51 -0500
commit668724a78419ce319d5b255ec8cb85a3e9f8594d (patch)
tree57e1001dd62e9e1eb5382c27661baa39d111adee /hw
parentbb36f66a97930cbbab8b483dddf82218b590f195 (diff)
qdev/prop: convert iommu.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/iommu.c8
1 files 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(),
}
};