aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-07-11 08:20:24 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-07-11 08:20:24 +0000
commitac47a60b3fb370d12cdaf9b91cded9a1934bcc64 (patch)
tree5fd72d0dd6637881ceab2b2e9eb299ac409e49b1
parent0c3271c558cf853171b213a73d1c24394f77c7a2 (diff)
Fix APB by reverting 16eaedf2668e9b347a59d73346fcc4c764c58348 partially
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
-rw-r--r--hw/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/pci.c b/hw/pci.c
index 71d9227a2e..f592925d06 100644
--- a/hw/pci.c
+++ b/hw/pci.c
@@ -135,7 +135,7 @@ static PCIBus *pci_register_secondary_bus(PCIDevice *dev, pci_map_irq_fn map_irq
{
PCIBus *bus;
- bus = FROM_QBUS(PCIBus, qbus_create(&pci_bus_info, &dev->qdev, NULL));
+ bus = qemu_mallocz(sizeof(PCIBus));
bus->map_irq = map_irq;
bus->parent_dev = dev;
bus->next = dev->bus->next;