aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-08-03 17:35:35 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-08-10 13:11:25 -0500
commitc885159a7ad2b2af35f5cf9aaa6966a013824388 (patch)
tree3413deac34a47e3af5c1538062c88e3edf91fe39
parent3180d77219deced6aa1c4c614a0aff1c67438385 (diff)
qdev/prop: convert sun4m.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/sun4m.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/hw/sun4m.c b/hw/sun4m.c
index abadfd6ffe..ddc295a9a8 100644
--- a/hw/sun4m.c
+++ b/hw/sun4m.c
@@ -695,12 +695,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(),
}
};