aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hw/syborg_timer.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/hw/syborg_timer.c b/hw/syborg_timer.c
index cf96c5fffe..f64b824e46 100644
--- a/hw/syborg_timer.c
+++ b/hw/syborg_timer.c
@@ -230,12 +230,8 @@ static SysBusDeviceInfo syborg_timer_info = {
.qdev.name = "syborg,timer",
.qdev.size = sizeof(SyborgTimerState),
.qdev.props = (Property[]) {
- {
- .name = "frequency",
- .info = &qdev_prop_uint32,
- .offset = offsetof(SyborgTimerState, freq),
- },
- {/* end of list */}
+ DEFINE_PROP_UINT32("frequency",SyborgTimerState, freq, 0),
+ DEFINE_PROP_END_OF_LIST(),
}
};