qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 2/4] piix_pci: Use ISA_BUS() instead of DO_UPCAST()


From: David Woodhouse
Subject: [Qemu-devel] [PATCH 2/4] piix_pci: Use ISA_BUS() instead of DO_UPCAST()
Date: Wed, 20 Feb 2013 21:46:47 +0000

From: David Woodhouse <address@hidden>

Signed-off-by: David Woodhouse <address@hidden>
---
 hw/piix_pci.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/hw/piix_pci.c b/hw/piix_pci.c
index 6b69e26..d45449a 100644
--- a/hw/piix_pci.c
+++ b/hw/piix_pci.c
@@ -301,8 +301,7 @@ static PCIBus *i440fx_common_init(const char *device_name,
         pci_bus_set_route_irq_fn(b, piix3_route_intx_pin_to_irq);
     }
     piix3->pic = pic;
-    *isa_bus = DO_UPCAST(ISABus, qbus,
-                         qdev_get_child_bus(&piix3->dev.qdev, "isa.0"));
+    *isa_bus = ISA_BUS(qdev_get_child_bus(&piix3->dev.qdev, "isa.0"));
 
     *piix3_devfn = piix3->dev.devfn;
 
-- 
1.8.1.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]