From: Gerd Hoffmann Date: Mon, 3 Aug 2009 15:35:36 +0000 (+0200) Subject: qdev/prop: convert sun4u.c to helper macros. X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=32a7ee989f2477067522fb2cef547b3af5ba9838;p=qemu.git qdev/prop: convert sun4u.c to helper macros. Signed-off-by: Gerd Hoffmann Signed-off-by: Anthony Liguori Message-Id: --- diff --git a/hw/sun4u.c b/hw/sun4u.c index 59bcf64ebe..77164cacbe 100644 --- a/hw/sun4u.c +++ b/hw/sun4u.c @@ -491,12 +491,8 @@ static SysBusDeviceInfo ram_info = { .qdev.name = "memory", .qdev.size = sizeof(RamDevice), .qdev.props = (Property[]) { - { - .name = "size", - .info = &qdev_prop_uint64, - .offset = offsetof(RamDevice, size), - }, - {/* end of property list */} + DEFINE_PROP_UINT64("size", RamDevice, size, 0), + DEFINE_PROP_END_OF_LIST(), } };