hw/block/pflash_cfi02: Open-code pflash_register_memory(rom=false)
commitcadf25cfaa8d495c8e642cda49eda074352a8fc8
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Tue, 9 Mar 2021 23:18:56 +0000 (10 00:18 +0100)
committerPhilippe Mathieu-Daudé <philmd@redhat.com>
Thu, 18 Mar 2021 10:16:31 +0000 (18 11:16 +0100)
tree30c681cc8e2c2b6be97c8547b22492ff4282fa9c
parent326d02c34a92f6e30fa3231be83efda43bac36f8
hw/block/pflash_cfi02: Open-code pflash_register_memory(rom=false)

There is only one call to pflash_register_memory() with
rom_mode == false. As we want to modify pflash_register_memory()
in the next patch, open-code this trivial function in place for
the 'rom_mode == false' case.

Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: David Edmondson <david.edmondson@oracle.com>
Message-Id: <20210310170528.1184868-6-philmd@redhat.com>
hw/block/pflash_cfi02.c