aboutsummaryrefslogtreecommitdiff
path: root/hw/pci_bridge.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/pci_bridge.c')
-rw-r--r--hw/pci_bridge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/pci_bridge.c b/hw/pci_bridge.c
index 650d1650c5..1ed43394de 100644
--- a/hw/pci_bridge.c
+++ b/hw/pci_bridge.c
@@ -294,7 +294,7 @@ void pci_bridge_reset_reg(PCIDevice *dev)
/* default reset function for PCI-to-PCI bridge */
void pci_bridge_reset(DeviceState *qdev)
{
- PCIDevice *dev = DO_UPCAST(PCIDevice, qdev, qdev);
+ PCIDevice *dev = PCI_DEVICE(qdev);
pci_bridge_reset_reg(dev);
}