aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-08-03 17:35:47 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-08-10 13:11:27 -0500
commit8017dc2688bd8bed943f30740e4b91351d3e114a (patch)
tree8c493715fdbf35b248f82ba34417e62b93fd4d1e /hw
parent05f0257906f3364b106bd971db57719cd3f6374e (diff)
qdev/prop: convert xilinx_intc.c to helper macros.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
Diffstat (limited to 'hw')
-rw-r--r--hw/xilinx_intc.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/hw/xilinx_intc.c b/hw/xilinx_intc.c
index 3f08bf81b6..7fadad518c 100644
--- a/hw/xilinx_intc.c
+++ b/hw/xilinx_intc.c
@@ -162,12 +162,8 @@ static SysBusDeviceInfo xilinx_intc_info = {
.qdev.name = "xilinx,intc",
.qdev.size = sizeof(struct xlx_pic),
.qdev.props = (Property[]) {
- {
- .name = "kind-of-intr",
- .info = &qdev_prop_uint32,
- .offset = offsetof(struct xlx_pic, c_kind_of_intr),
- },
- {/* end of list */}
+ DEFINE_PROP_UINT32("kind-of-intr", struct xlx_pic, c_kind_of_intr, 0),
+ DEFINE_PROP_END_OF_LIST(),
}
};