Re: [PATCH v4 6/6] hw/*: Use type casting for SysBusDevice in NPCM7XX

2021-01-07 Thread Peter Maydell
On Thu, 17 Dec 2020 at 00:45, Hao Wu wrote: > > A device shouldn't access its parent object which is QOM internal. > Instead it should use type cast for this purporse. This patch fixes this > issue for all NPCM7XX Devices. > > Signed-off-by: Hao Wu Reviewed-by: Peter Maydell thanks -- PMM

[PATCH v4 6/6] hw/*: Use type casting for SysBusDevice in NPCM7XX

2020-12-16 Thread Hao Wu via
A device shouldn't access its parent object which is QOM internal. Instead it should use type cast for this purporse. This patch fixes this issue for all NPCM7XX Devices. Signed-off-by: Hao Wu --- hw/arm/npcm7xx_boards.c | 2 +- hw/mem/npcm7xx_mc.c | 2 +- hw/misc/npcm7xx_clk.c | 2 +-