diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2009-08-03 17:35:36 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-08-10 13:11:25 -0500 |
commit | 32a7ee989f2477067522fb2cef547b3af5ba9838 (patch) | |
tree | 10f717bae2a93c0a1f59c76d0671e00ae8ec7649 /hw/sun4u.c | |
parent | c885159a7ad2b2af35f5cf9aaa6966a013824388 (diff) |
qdev/prop: convert sun4u.c to helper macros.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Diffstat (limited to 'hw/sun4u.c')
-rw-r--r-- | hw/sun4u.c | 8 |
1 files changed, 2 insertions, 6 deletions
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(), } }; |