Signed-off-by: Michael Roth <mdr...@linux.vnet.ibm.com> --- hw/mc146818rtc.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/hw/mc146818rtc.c b/hw/mc146818rtc.c index 8983d26..10492a1 100644 --- a/hw/mc146818rtc.c +++ b/hw/mc146818rtc.c @@ -27,6 +27,8 @@ #include "mc146818rtc.h" #include "qidl.h" +QIDL_ENABLE() + #ifdef TARGET_I386 #include "apic.h" #endif @@ -881,13 +883,6 @@ ISADevice *rtc_init(ISABus *bus, int base_year, qemu_irq intercept_irq) return dev; } -static Property mc146818rtc_properties[] = { - DEFINE_PROP_INT32("base_year", RTCState, base_year, 1980), - DEFINE_PROP_LOSTTICKPOLICY("lost_tick_policy", RTCState, - lost_tick_policy, LOST_TICK_DISCARD), - DEFINE_PROP_END_OF_LIST(), -}; - static void rtc_class_initfn(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); @@ -895,7 +890,7 @@ static void rtc_class_initfn(ObjectClass *klass, void *data) ic->init = rtc_initfn; dc->no_user = 1; dc->vmsd = &vmstate_rtc; - dc->props = mc146818rtc_properties; + dc->props = QIDL_PROPERTIES(RTCState); } static TypeInfo mc146818rtc_info = { -- 1.7.9.5