isa: QOM'ify isa_bus_from_device()
commit3e7b8f4e6f507e09e27b7449f3744596f19c0083
authorAndreas Färber <afaerber@suse.de>
Sun, 20 Jan 2013 17:56:18 +0000 (20 18:56 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 1 Feb 2013 16:43:28 +0000 (1 10:43 -0600)
tree20f45f9b56c4e51c3677684f9ea1e43b4972c0b3
parent8aae84a1f2ad256d222c97411af17013b1c35799
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>
hw/isa.h