aboutsummaryrefslogtreecommitdiff
path: root/hw/block/pflash_cfi01.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2013-06-06 21:25:08 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2013-07-04 17:42:47 +0200
commit2d256e6f652b519c59d0bea926ebb1cb866d4241 (patch)
tree1e7d50647d1989a65e45b2a0298fbcec27c4e2b4 /hw/block/pflash_cfi01.c
parent64bde0f3e7170cc8a9b60da835b9b3cefd03a7a5 (diff)
downloadqemu-2d256e6f652b519c59d0bea926ebb1cb866d4241.zip
qemu-2d256e6f652b519c59d0bea926ebb1cb866d4241.tar.gz
qemu-2d256e6f652b519c59d0bea926ebb1cb866d4241.tar.bz2
hw/block: pass owner to memory_region_init* functions
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/block/pflash_cfi01.c')
-rw-r--r--hw/block/pflash_cfi01.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/block/pflash_cfi01.c b/hw/block/pflash_cfi01.c
index 5d51e58..6898a25 100644
--- a/hw/block/pflash_cfi01.c
+++ b/hw/block/pflash_cfi01.c
@@ -579,7 +579,7 @@ static int pflash_cfi01_init(SysBusDevice *dev)
#endif
memory_region_init_rom_device(
- &pfl->mem, NULL,
+ &pfl->mem, OBJECT(dev),
pfl->be ? &pflash_cfi01_ops_be : &pflash_cfi01_ops_le, pfl,
pfl->name, total_len);
vmstate_register_ram(&pfl->mem, DEVICE(pfl));