mirror of
https://git.proxmox.com/git/qemu
synced 2025-08-06 22:33:05 +00:00
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>
This commit is contained in:
parent
8aae84a1f2
commit
3e7b8f4e6f
2
hw/isa.h
2
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)
|
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;
|
extern hwaddr isa_mem_base;
|
||||||
|
Loading…
Reference in New Issue
Block a user