qdev/prop: convert arm_sysctl.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:
Gerd Hoffmann 2009-08-03 17:35:20 +02:00 committed by Anthony Liguori
parent 54586bd17d
commit e325775b35
1 changed files with 2 additions and 6 deletions

View File

@ -219,12 +219,8 @@ static SysBusDeviceInfo arm_sysctl_info = {
.qdev.name = "realview_sysctl", .qdev.name = "realview_sysctl",
.qdev.size = sizeof(arm_sysctl_state), .qdev.size = sizeof(arm_sysctl_state),
.qdev.props = (Property[]) { .qdev.props = (Property[]) {
{ DEFINE_PROP_UINT32("sys_id", arm_sysctl_state, sys_id, 0),
.name = "sys_id", DEFINE_PROP_END_OF_LIST(),
.info = &qdev_prop_uint32,
.offset = offsetof(arm_sysctl_state, sys_id),
},
{/* end of list */}
} }
}; };