mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
hw/p*: pass owner to memory_region_init* functions
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
eedfac6f38
commit
40c5dce99b
21 changed files with 91 additions and 86 deletions
|
@ -612,8 +612,8 @@ int shpc_init(PCIDevice *d, PCIBus *sec_bus, MemoryRegion *bar, unsigned offset)
|
|||
}
|
||||
|
||||
/* TODO: init cmask */
|
||||
memory_region_init_io(&shpc->mmio, NULL, &shpc_mmio_ops, d, "shpc-mmio",
|
||||
SHPC_SIZEOF(d));
|
||||
memory_region_init_io(&shpc->mmio, OBJECT(d), &shpc_mmio_ops,
|
||||
d, "shpc-mmio", SHPC_SIZEOF(d));
|
||||
shpc_cap_update_dword(d);
|
||||
memory_region_add_subregion(bar, offset, &shpc->mmio);
|
||||
pci_bus_hotplug(sec_bus, shpc_device_hotplug, &d->qdev);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue