mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
hw/m*: pass owner to memory_region_init* functions
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
1437c94b26
commit
3c16154210
22 changed files with 58 additions and 53 deletions
|
@ -157,7 +157,8 @@ static int l2x0_priv_init(SysBusDevice *dev)
|
|||
{
|
||||
l2x0_state *s = FROM_SYSBUS(l2x0_state, dev);
|
||||
|
||||
memory_region_init_io(&s->iomem, NULL, &l2x0_mem_ops, s, "l2x0_cc", 0x1000);
|
||||
memory_region_init_io(&s->iomem, OBJECT(dev), &l2x0_mem_ops, s,
|
||||
"l2x0_cc", 0x1000);
|
||||
sysbus_init_mmio(dev, &s->iomem);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue