qdev/prop: convert pcnet.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:29 +02:00 committed by Anthony Liguori
parent 01274424cf
commit 186507b446
1 changed files with 2 additions and 6 deletions

View File

@ -2145,12 +2145,8 @@ static SysBusDeviceInfo lance_info = {
.qdev.name = "lance",
.qdev.size = sizeof(SysBusPCNetState),
.qdev.props = (Property[]) {
{
.name = "dma",
.info = &qdev_prop_ptr,
.offset = offsetof(SysBusPCNetState, state.dma_opaque),
},
{/* end of list */}
DEFINE_PROP_PTR("dma", SysBusPCNetState, state.dma_opaque),
DEFINE_PROP_END_OF_LIST(),
}
};