From 7fdaf611a50b437e2d8dc07bfe9372a595dedcf9 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Mon, 3 Aug 2009 17:35:31 +0200 Subject: qdev/prop: convert slavio_intctl.c to helper macros. Signed-off-by: Gerd Hoffmann Signed-off-by: Anthony Liguori Message-Id: Message-Id: --- hw/slavio_intctl.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'hw') diff --git a/hw/slavio_intctl.c b/hw/slavio_intctl.c index a56feb6de9..dbea1f93a0 100644 --- a/hw/slavio_intctl.c +++ b/hw/slavio_intctl.c @@ -425,12 +425,8 @@ static SysBusDeviceInfo slavio_intctl_info = { .qdev.name = "slavio_intctl", .qdev.size = sizeof(SLAVIO_INTCTLState), .qdev.props = (Property[]) { - { - .name = "cputimer_bit", - .info = &qdev_prop_uint32, - .offset = offsetof(SLAVIO_INTCTLState, cputimer_bit), - }, - {/* end of property list */} + DEFINE_PROP_UINT32("cputimer_bit", SLAVIO_INTCTLState, cputimer_bit, 0), + DEFINE_PROP_END_OF_LIST(), } }; -- cgit v1.2.3