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:
parent
bf2782d7d3
commit
3180d77219
@ -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(),
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user