hw/timer: QOM'ify arm_timer (pass 1)
commit0d175e745f91fe2177f634676c34d450fd66e518
authorxiaoqiang.zhao <zxq_yx_007@163.com>
Thu, 18 Feb 2016 14:16:20 +0000 (18 14:16 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 18 Feb 2016 14:50:50 +0000 (18 14:50 +0000)
tree8461947f26f43097130c28c24f39088c3d26561d
parent9800ad88c8e0f150284c240fb2e2d08c3e1e02d5
hw/timer: QOM'ify arm_timer (pass 1)

* assign icp_pit_init to icp_pit_info.instance_init
* split the old SysBus init function into an instance_init
  and a Device realize function
* use DeviceClass::realize instead of SysBusDeviceClass::init

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: xiaoqiang zhao <zxq_yx_007@163.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/timer/arm_timer.c