From 2ae0e48d5fd2cb7c5bc5c392edf2dc33ac2959d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Fri, 7 Jun 2013 14:11:07 +0200 Subject: isa: QOM'ify ISABus MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Rename its parent field and use ISA_BUS() where necessary. Signed-off-by: Andreas Färber --- hw/isa/piix4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/isa/piix4.c') diff --git a/hw/isa/piix4.c b/hw/isa/piix4.c index d750413a7e..1a1d4518ce 100644 --- a/hw/isa/piix4.c +++ b/hw/isa/piix4.c @@ -98,7 +98,7 @@ int piix4_init(PCIBus *bus, ISABus **isa_bus, int devfn) PCIDevice *d; d = pci_create_simple_multifunction(bus, devfn, true, "PIIX4"); - *isa_bus = DO_UPCAST(ISABus, qbus, qdev_get_child_bus(&d->qdev, "isa.0")); + *isa_bus = ISA_BUS(qdev_get_child_bus(DEVICE(d), "isa.0")); return d->devfn; } -- cgit v1.2.1