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:
This commit is contained in:
Gerd Hoffmann 2009-08-03 17:35:34 +02:00 committed by Anthony Liguori
parent bf2782d7d3
commit 3180d77219

View File

@ -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(),
}
};