These are some simple patches that I made while studying qdev clocks.
The main change is removing the callback on unparent rather than
finalization, because finalization is too late and the callbacks (if they
were called) would operate on a device that's been already partly
dismantled.
Patches 2 and 3 instead are just cleanups.
Paolo
Paolo Bonzini (3):
clock: clear callback on unparent
clock: treat outputs and inputs the same in NamedClockList
clock: inline most of qdev_init_clocklist
include/hw/clock.h | 8 -----
hw/core/clock.c | 22 +++++++++---
hw/core/qdev-clock.c | 86 +++++++++++++++-----------------------------
3 files changed, 46 insertions(+), 70 deletions(-)
--
2.47.0