mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
hw/gpio: pass owner to memory_region_init* functions
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
3eadad551d
commit
b716368778
4 changed files with 6 additions and 6 deletions
|
@ -169,7 +169,7 @@ static int scoop_init(SysBusDevice *dev)
|
|||
s->status = 0x02;
|
||||
qdev_init_gpio_out(&s->busdev.qdev, s->handler, 16);
|
||||
qdev_init_gpio_in(&s->busdev.qdev, scoop_gpio_set, 16);
|
||||
memory_region_init_io(&s->iomem, NULL, &scoop_ops, s, "scoop", 0x1000);
|
||||
memory_region_init_io(&s->iomem, OBJECT(s), &scoop_ops, s, "scoop", 0x1000);
|
||||
|
||||
sysbus_init_mmio(dev, &s->iomem);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue