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:
This commit is contained in:
Gerd Hoffmann 2009-08-03 17:35:47 +02:00 committed by Anthony Liguori
parent 05f0257906
commit 8017dc2688

View File

@ -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(),
}
};