aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-08-03 17:35:29 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-08-10 13:05:52 -0500
commit186507b4466c70fdd8df7d14b425b5e0821c0960 (patch)
treeaa4910f21e53d38c27458c8c4d174a8cf357037e
parent01274424cf1462661c1c03eaa59c885a6b04da29 (diff)
downloadqemu-186507b4466c70fdd8df7d14b425b5e0821c0960.zip
qemu-186507b4466c70fdd8df7d14b425b5e0821c0960.tar.gz
qemu-186507b4466c70fdd8df7d14b425b5e0821c0960.tar.bz2
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:
-rw-r--r--hw/pcnet.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/hw/pcnet.c b/hw/pcnet.c
index 22ab6be..637dcfb 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(),
}
};