aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-08-03 17:35:26 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-08-10 13:05:51 -0500
commitbb36f66a97930cbbab8b483dddf82218b590f195 (patch)
treeca5f71c7425216a74f4825f80b00ea16a990994e /hw/integratorcp.c
parentqdev/prop: convert i2c.c to helper macros. (diff)
downloadqemu-kvm-bb36f66a97930cbbab8b483dddf82218b590f195.tar.gz
qemu-kvm-bb36f66a97930cbbab8b483dddf82218b590f195.tar.bz2
qemu-kvm-bb36f66a97930cbbab8b483dddf82218b590f195.zip
qdev/prop: convert integratorcp.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/integratorcp.c')
-rw-r--r--hw/integratorcp.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/hw/integratorcp.c b/hw/integratorcp.c
index ddc8d8556..2d83004d0 100644
--- a/hw/integratorcp.c
+++ b/hw/integratorcp.c
@@ -526,12 +526,8 @@ static SysBusDeviceInfo core_info = {
.qdev.name = "integrator_core",
.qdev.size = sizeof(integratorcm_state),
.qdev.props = (Property[]) {
- {
- .name = "memsz",
- .info = &qdev_prop_uint32,
- .offset = offsetof(integratorcm_state, memsz),
- },
- {/* end of list */}
+ DEFINE_PROP_UINT32("memsz", integratorcm_state, memsz, 0),
+ DEFINE_PROP_END_OF_LIST(),
}
};