From e325775b35d918ac4f90b2cf6289fe29a91a2071 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Mon, 3 Aug 2009 17:35:20 +0200 Subject: qdev/prop: convert arm_sysctl.c to helper macros. Signed-off-by: Gerd Hoffmann Signed-off-by: Anthony Liguori Message-Id: --- hw/arm_sysctl.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'hw/arm_sysctl.c') diff --git a/hw/arm_sysctl.c b/hw/arm_sysctl.c index bb005c8015..11b3787b12 100644 --- a/hw/arm_sysctl.c +++ b/hw/arm_sysctl.c @@ -219,12 +219,8 @@ static SysBusDeviceInfo arm_sysctl_info = { .qdev.name = "realview_sysctl", .qdev.size = sizeof(arm_sysctl_state), .qdev.props = (Property[]) { - { - .name = "sys_id", - .info = &qdev_prop_uint32, - .offset = offsetof(arm_sysctl_state, sys_id), - }, - {/* end of list */} + DEFINE_PROP_UINT32("sys_id", arm_sysctl_state, sys_id, 0), + DEFINE_PROP_END_OF_LIST(), } }; -- cgit v1.2.3