From 2d256e6f652b519c59d0bea926ebb1cb866d4241 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Thu, 6 Jun 2013 21:25:08 -0400 Subject: hw/block: pass owner to memory_region_init* functions Signed-off-by: Paolo Bonzini --- hw/block/pflash_cfi01.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/block/pflash_cfi01.c') diff --git a/hw/block/pflash_cfi01.c b/hw/block/pflash_cfi01.c index 5d51e584e5..6898a257d9 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)); -- cgit v1.2.3