mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 10:34:58 -06:00
pflash: Clean up after commit 368a354f02
, part 1
QOMification left parameter @qdev unused in pflash_cfi01_register() and pflash_cfi02_register(). All callers pass NULL. Remove. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20190308094610.21210-15-armbru@redhat.com>
This commit is contained in:
parent
7ebfece56a
commit
940d5b132f
23 changed files with 31 additions and 33 deletions
|
@ -1261,7 +1261,7 @@ void mips_malta_init(MachineState *machine)
|
|||
|
||||
/* Load firmware in flash / BIOS. */
|
||||
dinfo = drive_get(IF_PFLASH, 0, fl_idx);
|
||||
fl = pflash_cfi01_register(FLASH_ADDRESS, NULL, "mips_malta.bios",
|
||||
fl = pflash_cfi01_register(FLASH_ADDRESS, "mips_malta.bios",
|
||||
FLASH_SIZE,
|
||||
dinfo ? blk_by_legacy_dinfo(dinfo) : NULL,
|
||||
65536, FLASH_SIZE >> 16,
|
||||
|
|
|
@ -235,7 +235,7 @@ void mips_r4k_init(MachineState *machine)
|
|||
load_image_targphys(filename, 0x1fc00000, BIOS_SIZE);
|
||||
} else if ((dinfo = drive_get(IF_PFLASH, 0, 0)) != NULL) {
|
||||
uint32_t mips_rom = 0x00400000;
|
||||
if (!pflash_cfi01_register(0x1fc00000, NULL, "mips_r4k.bios", mips_rom,
|
||||
if (!pflash_cfi01_register(0x1fc00000, "mips_r4k.bios", mips_rom,
|
||||
blk_by_legacy_dinfo(dinfo),
|
||||
sector_len, mips_rom / sector_len,
|
||||
4, 0, 0, 0, 0, be)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue