This patch series QOM'ify timer code under hw/timer directory. Main idea is to split the initfn's work, some to TypeInfo.instance_init and some is placed in DeviceClass::realize. Drop the use of SysBusDeviceClass::init if possible.
changes in v3: * remove unnecessary OBJECT cast * refine some commit message * use DeviceClass::vmsd instead of vmstate_register to register the VMState if possible changes in v2: fix a stupid typo (timmer->timer) xiaoqiang zhao (16): hw/timer: QOM'ify arm_timer (pass 1) hw/timer: QOM'ify arm_timer (pass 2) hw/timer: QOM'ify etraxfs_timer hw/timer: QOM'ify exynos4210_mct hw/timer: QOM'ify exynos4210_pwm hw/timer: QOM'ify exynos4210_rtc hw/timer: QOM'ify grlib_gptimer hw/timer: QOM'ify lm32_timer hw/timer: QOM'ify m48txx_sysbus (pass 1) hw/timer: QOM'ify m48txx_sysbus (pass 2) hw/timer: QOM'ify milkymist_sysctl hw/timer: QOM'ify pl031 hw/timer: QOM'ify puv3_ost hw/timer: QOM'ify pxa2xx_timer hw/timer: QOM'ify slavio_timer hw/timer: QOM'ify tusb6010 hw/timer/arm_timer.c | 42 ++++++++++++++++++++---------------------- hw/timer/etraxfs_timer.c | 14 +++++++------- hw/timer/exynos4210_mct.c | 12 +++++------- hw/timer/exynos4210_pwm.c | 12 +++++------- hw/timer/exynos4210_rtc.c | 12 +++++------- hw/timer/grlib_gptimer.c | 30 ++++++++++++++++++------------ hw/timer/lm32_timer.c | 19 ++++++++++++------- hw/timer/m48t59.c | 39 ++++++++++++++++++++------------------- hw/timer/milkymist-sysctl.c | 21 +++++++++++++-------- hw/timer/pl031.c | 11 +++++------ hw/timer/puv3_ost.c | 18 +++++------------- hw/timer/pxa2xx_timer.c | 36 +++++++++++++++++++++--------------- hw/timer/slavio_timer.c | 12 +++++------- hw/timer/tusb6010.c | 13 ++++++------- 14 files changed, 147 insertions(+), 144 deletions(-) -- 2.1.4