mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 18:44:58 -06:00
hw/*: Use type casting for SysBusDevice in NPCM7XX
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 <wuhaotsh@google.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-id: 20210108190945.949196-7-wuhaotsh@google.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
73314f1384
commit
828d651c58
7 changed files with 7 additions and 7 deletions
|
@ -498,7 +498,7 @@ static void npcm7xx_fiu_hold_reset(Object *obj)
|
|||
static void npcm7xx_fiu_realize(DeviceState *dev, Error **errp)
|
||||
{
|
||||
NPCM7xxFIUState *s = NPCM7XX_FIU(dev);
|
||||
SysBusDevice *sbd = &s->parent;
|
||||
SysBusDevice *sbd = SYS_BUS_DEVICE(dev);
|
||||
int i;
|
||||
|
||||
if (s->cs_count <= 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue