[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [COMMIT 32a7ee9] qdev/prop: convert sun4u.c to helper mac
From: |
Anthony Liguori |
Subject: |
[Qemu-commits] [COMMIT 32a7ee9] qdev/prop: convert sun4u.c to helper macros. |
Date: |
Mon, 10 Aug 2009 21:48:52 -0000 |
From: Gerd Hoffmann <address@hidden>
Signed-off-by: Gerd Hoffmann <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>
Message-Id:
diff --git a/hw/sun4u.c b/hw/sun4u.c
index 59bcf64..77164ca 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(),
}
};
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [COMMIT 32a7ee9] qdev/prop: convert sun4u.c to helper macros.,
Anthony Liguori <=