mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
hw/[u-x]*: pass owner to memory_region_init* functions
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
853dca1205
commit
22fc860b0a
12 changed files with 31 additions and 25 deletions
|
@ -1830,7 +1830,8 @@ static int usb_ohci_init(OHCIState *ohci, DeviceState *dev,
|
|||
}
|
||||
}
|
||||
|
||||
memory_region_init_io(&ohci->mem, NULL, &ohci_mem_ops, ohci, "ohci", 256);
|
||||
memory_region_init_io(&ohci->mem, OBJECT(dev), &ohci_mem_ops,
|
||||
ohci, "ohci", 256);
|
||||
ohci->localmem_base = localmem_base;
|
||||
|
||||
ohci->name = object_get_typename(OBJECT(dev));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue