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:
This commit is contained in:
parent
c885159a7a
commit
32a7ee989f
@ -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(),
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user