summaryrefslogtreecommitdiffstats
path: root/hw/arm/spitz.c
diff options
context:
space:
mode:
authorPaolo Bonzini2013-06-07 03:25:08 +0200
committerPaolo Bonzini2013-07-04 17:42:47 +0200
commit64bde0f3e7170cc8a9b60da835b9b3cefd03a7a5 (patch)
treef6f07f44453620ddeab4a1251887357eeca7587f /hw/arm/spitz.c
parentpiolist: add owner argument to initialization functions and pass devices (diff)
downloadqemu-64bde0f3e7170cc8a9b60da835b9b3cefd03a7a5.tar.gz
qemu-64bde0f3e7170cc8a9b60da835b9b3cefd03a7a5.tar.xz
qemu-64bde0f3e7170cc8a9b60da835b9b3cefd03a7a5.zip
hw/a*: pass owner to memory_region_init* functions
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/arm/spitz.c')
-rw-r--r--hw/arm/spitz.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/arm/spitz.c b/hw/arm/spitz.c
index 60ad30da57..593b75e55b 100644
--- a/hw/arm/spitz.c
+++ b/hw/arm/spitz.c
@@ -169,7 +169,7 @@ static int sl_nand_init(SysBusDevice *dev) {
nand = drive_get(IF_MTD, 0, 0);
s->nand = nand_init(nand ? nand->bdrv : NULL, s->manf_id, s->chip_id);
- memory_region_init_io(&s->iomem, NULL, &sl_ops, s, "sl", 0x40);
+ memory_region_init_io(&s->iomem, OBJECT(s), &sl_ops, s, "sl", 0x40);
sysbus_init_mmio(dev, &s->iomem);
return 0;