mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 18:44: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
|
@ -458,8 +458,8 @@ static int exynos4210_pmu_init(SysBusDevice *dev)
|
|||
Exynos4210PmuState *s = FROM_SYSBUS(Exynos4210PmuState, dev);
|
||||
|
||||
/* memory mapping */
|
||||
memory_region_init_io(&s->iomem, NULL, &exynos4210_pmu_ops, s, "exynos4210.pmu",
|
||||
EXYNOS4210_PMU_REGS_MEM_SIZE);
|
||||
memory_region_init_io(&s->iomem, OBJECT(dev), &exynos4210_pmu_ops, s,
|
||||
"exynos4210.pmu", EXYNOS4210_PMU_REGS_MEM_SIZE);
|
||||
sysbus_init_mmio(dev, &s->iomem);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue