summaryrefslogtreecommitdiffstats
path: root/hw/pci
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2013-06-07 14:45:17 +0200
committerAndreas Färber <afaerber@suse.de>2013-06-07 14:55:33 +0200
commitfef7fbc92496f5f6d2b7395263830bce15ebf410 (patch)
treea18ccc5c8b20fe7c25ac9df788419af919d7a8f6 /hw/pci
parent4a17cc4f285d7ffe41847bf728cd88c736237416 (diff)
downloadhqemu-fef7fbc92496f5f6d2b7395263830bce15ebf410.zip
hqemu-fef7fbc92496f5f6d2b7395263830bce15ebf410.tar.gz
qdev: Drop FROM_QBUS() macro
Use QOM cast macros I2C_BUS(), SSI_BUS(), PCI_BUS() instead. Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'hw/pci')
-rw-r--r--hw/pci/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/pci/pci.c b/hw/pci/pci.c
index bb3879b..a3eb19e 100644
--- a/hw/pci/pci.c
+++ b/hw/pci/pci.c
@@ -1700,7 +1700,7 @@ static int pci_qdev_init(DeviceState *qdev)
pci_dev->cap_present |= QEMU_PCI_CAP_EXPRESS;
}
- bus = FROM_QBUS(PCIBus, qdev_get_parent_bus(qdev));
+ bus = PCI_BUS(qdev_get_parent_bus(qdev));
pci_dev = do_pci_register_device(pci_dev, bus,
object_get_typename(OBJECT(qdev)),
pci_dev->devfn);
OpenPOWER on IntegriCloud