memory: add parameter errp to memory_region_init_rom_device
commit33e0eb5297883444f784a7c22bcf30550a30d601
authorHu Tao <hutao@cn.fujitsu.com>
Tue, 9 Sep 2014 05:27:57 +0000 (9 13:27 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 9 Sep 2014 11:41:44 +0000 (9 13:41 +0200)
treee7d8d30ba00aae966a66e1ccee39e2822176723b
parent49946538d29618319a54e798f22bbcc8065ad106
memory: add parameter errp to memory_region_init_rom_device

Add parameter errp to memory_region_init_rom_device and update all call
sites to propagate the error.

Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>
[Propagate the error out of realize. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/block/pflash_cfi01.c
hw/block/pflash_cfi02.c
include/exec/memory.h
memory.c