diff options
Diffstat (limited to 'hw/spapr_pci.c')
-rw-r--r-- | hw/spapr_pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/spapr_pci.c b/hw/spapr_pci.c index 27b3ad3d60..bbcc9fc968 100644 --- a/hw/spapr_pci.c +++ b/hw/spapr_pci.c @@ -597,7 +597,7 @@ static int spapr_phb_init(SysBusDevice *s) static void spapr_phb_reset(DeviceState *qdev) { - SysBusDevice *s = sysbus_from_qdev(qdev); + SysBusDevice *s = SYS_BUS_DEVICE(qdev); sPAPRPHBState *sphb = SPAPR_PCI_HOST_BRIDGE(s); /* Reset the IOMMU state */ |