From 18c637dccba26adc0ebaac8418f7ad4eb6538e36 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Mon, 3 Aug 2009 17:35:32 +0200 Subject: [PATCH] qdev/prop: convert slavio_timer.c to helper macros. Signed-off-by: Gerd Hoffmann Signed-off-by: Anthony Liguori Message-Id: Message-Id: --- hw/slavio_timer.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/hw/slavio_timer.c b/hw/slavio_timer.c index ed1145a..531d6db 100644 --- a/hw/slavio_timer.c +++ b/hw/slavio_timer.c @@ -451,12 +451,8 @@ static SysBusDeviceInfo slavio_timer_info = { .qdev.name = "slavio_timer", .qdev.size = sizeof(SLAVIO_TIMERState), .qdev.props = (Property[]) { - { - .name = "num_cpus", - .info = &qdev_prop_uint32, - .offset = offsetof(SLAVIO_TIMERState, num_cpus), - }, - {/* end of property list */} + DEFINE_PROP_UINT32("num_cpus", SLAVIO_TIMERState, num_cpus, 0), + DEFINE_PROP_END_OF_LIST(), } }; -- 2.7.4