[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [COMMIT cdd0935] PPC: make system bus parent of PCI bus
From: |
Anthony Liguori |
Subject: |
[Qemu-commits] [COMMIT cdd0935] PPC: make system bus parent of PCI bus |
Date: |
Sat, 19 Sep 2009 19:00:33 -0000 |
From: Blue Swirl <address@hidden>
Signed-off-by: Blue Swirl <address@hidden>
diff --git a/hw/grackle_pci.c b/hw/grackle_pci.c
index 177c888..d878cf6 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 e6d9a70..a202153 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);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [COMMIT cdd0935] PPC: make system bus parent of PCI bus,
Anthony Liguori <=