aboutsummaryrefslogtreecommitdiff
path: root/hw/isa.h
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2013-01-20 18:56:18 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2013-02-01 10:43:28 -0600
commit3e7b8f4e6f507e09e27b7449f3744596f19c0083 (patch)
tree20f45f9b56c4e51c3677684f9ea1e43b4972c0b3 /hw/isa.h
parent8aae84a1f2ad256d222c97411af17013b1c35799 (diff)
isa: QOM'ify isa_bus_from_device()
DeviceState::parent_bus is document as private and should be accessed through qdev_get_parent_bus(). Use a DEVICE() cast instead of accessing ISADevice's qdev field directly. Use ISA_BUS() in place of DO_UPCAST(). Signed-off-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/isa.h')
-rw-r--r--hw/isa.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/isa.h b/hw/isa.h
index 62e89d3bcd..7a8874abfd 100644
--- a/hw/isa.h
+++ b/hw/isa.h
@@ -82,7 +82,7 @@ void isa_register_portio_list(ISADevice *dev, uint16_t start,
static inline ISABus *isa_bus_from_device(ISADevice *d)
{
- return DO_UPCAST(ISABus, qbus, d->qdev.parent_bus);
+ return ISA_BUS(qdev_get_parent_bus(DEVICE(d)));
}
extern hwaddr isa_mem_base;