aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-09-19 17:59:10 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-09-19 17:59:10 +0000
commitcdd0935cbd345364fc6265feaa5814790947b7f9 (patch)
treeaed84558974304bade9caf3a9f8fa3b5c65aee5f
parent50da01ed0917cab8559674c35d2b0dd79e32e25b (diff)
PPC: make system bus parent of PCI bus
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
-rw-r--r--hw/grackle_pci.c2
-rw-r--r--hw/unin_pci.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/hw/grackle_pci.c b/hw/grackle_pci.c
index 177c88877a..d878cf6748 100644
--- a/hw/grackle_pci.c
+++ b/hw/grackle_pci.c
@@ -141,7 +141,7 @@ PCIBus *pci_grackle_init(uint32_t base, qemu_irq *pic)
qdev_init(dev);
s = sysbus_from_qdev(dev);
d = FROM_SYSBUS(GrackleState, s);
- d->host_state.bus = pci_register_bus(NULL, "pci",
+ d->host_state.bus = pci_register_bus(&d->busdev.qdev, "pci",
pci_grackle_set_irq,
pci_grackle_map_irq,
pic, 0, 4);
diff --git a/hw/unin_pci.c b/hw/unin_pci.c
index e6d9a703e7..a202153922 100644
--- a/hw/unin_pci.c
+++ b/hw/unin_pci.c
@@ -256,7 +256,7 @@ PCIBus *pci_pmac_init(qemu_irq *pic)
qdev_init(dev);
s = sysbus_from_qdev(dev);
d = FROM_SYSBUS(UNINState, s);
- d->host_state.bus = pci_register_bus(NULL, "pci",
+ d->host_state.bus = pci_register_bus(&d->busdev.qdev, "pci",
pci_unin_set_irq, pci_unin_map_irq,
pic, 11 << 3, 4);