From: Gerd Hoffmann Date: Mon, 3 Aug 2009 15:35:29 +0000 (+0200) Subject: qdev/prop: convert pcnet.c to helper macros. X-Git-Tag: qemu-xen-4.2.0~6143 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=186507b4466c70fdd8df7d14b425b5e0821c0960;p=qemu-xen.git qdev/prop: convert pcnet.c to helper macros. Signed-off-by: Gerd Hoffmann Signed-off-by: Anthony Liguori Message-Id: --- diff --git a/hw/pcnet.c b/hw/pcnet.c index 22ab6beaf3..637dcfbb53 100644 --- a/hw/pcnet.c +++ b/hw/pcnet.c @@ -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(), } };