aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-08-03 17:35:38 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-08-10 13:11:26 -0500
commit3c2aed8b27273e46246aa642aa49a400580eb86e (patch)
tree01012356d73ed15c95fca96a940f76dddb39c338
parentc230c4e38ffc216918e5dc107595abe9c1e02488 (diff)
qdev/prop: convert syborg_interrupt.c to helper macros.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
-rw-r--r--hw/syborg_interrupt.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/hw/syborg_interrupt.c b/hw/syborg_interrupt.c
index a372ec1dd5..1b4498993d 100644
--- a/hw/syborg_interrupt.c
+++ b/hw/syborg_interrupt.c
@@ -222,13 +222,8 @@ static SysBusDeviceInfo syborg_int_info = {
.qdev.name = "syborg,interrupt",
.qdev.size = sizeof(SyborgIntState),
.qdev.props = (Property[]) {
- {
- .name = "num-interrupts",
- .info = &qdev_prop_uint32,
- .offset = offsetof(SyborgIntState, num_irqs),
- .defval = (uint32_t[]) { 64 },
- },
- {/* end of list */}
+ DEFINE_PROP_UINT32("num-interrupts", SyborgIntState, num_irqs, 64),
+ DEFINE_PROP_END_OF_LIST(),
}
};