mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53: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
|
@ -442,7 +442,7 @@ static int cadence_uart_init(SysBusDevice *dev)
|
|||
{
|
||||
UartState *s = FROM_SYSBUS(UartState, dev);
|
||||
|
||||
memory_region_init_io(&s->iomem, NULL, &uart_ops, s, "uart", 0x1000);
|
||||
memory_region_init_io(&s->iomem, OBJECT(s), &uart_ops, s, "uart", 0x1000);
|
||||
sysbus_init_mmio(dev, &s->iomem);
|
||||
sysbus_init_irq(dev, &s->irq);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue