aboutsummaryrefslogtreecommitdiff
path: root/hw/slavio_timer.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-08-03 17:35:32 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-08-10 13:11:25 -0500
commit18c637dccba26adc0ebaac8418f7ad4eb6538e36 (patch)
treea4aea1227cb044611692c497f317d3e4399ef481 /hw/slavio_timer.c
parent7fdaf611a50b437e2d8dc07bfe9372a595dedcf9 (diff)
downloadqemu-18c637dccba26adc0ebaac8418f7ad4eb6538e36.zip
qemu-18c637dccba26adc0ebaac8418f7ad4eb6538e36.tar.gz
qemu-18c637dccba26adc0ebaac8418f7ad4eb6538e36.tar.bz2
qdev/prop: convert slavio_timer.c to helper macros.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id: Message-Id:
Diffstat (limited to 'hw/slavio_timer.c')
-rw-r--r--hw/slavio_timer.c8
1 files 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(),
}
};