mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
hw/c*: pass owner to memory_region_init* functions
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
2d256e6f65
commit
300b1fc68c
19 changed files with 36 additions and 29 deletions
|
@ -70,7 +70,7 @@ static int empty_slot_init1(SysBusDevice *dev)
|
|||
{
|
||||
EmptySlot *s = FROM_SYSBUS(EmptySlot, dev);
|
||||
|
||||
memory_region_init_io(&s->iomem, NULL, &empty_slot_ops, s,
|
||||
memory_region_init_io(&s->iomem, OBJECT(s), &empty_slot_ops, s,
|
||||
"empty-slot", s->size);
|
||||
sysbus_init_mmio(dev, &s->iomem);
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue