mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
cfi_flash: Fix typo in cfi_flash.c
Patch "flash/cfi_flash: Use virtual sector start address, not phys" introduced a small typo and compilation warning for systems with CFI legacy support (e.g. hcu4). This patch fixes it. Signed-off-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
28745db969
commit
e1fb6d0d52
1 changed files with 2 additions and 2 deletions
|
@ -1622,7 +1622,7 @@ static int flash_detect_legacy(phys_addr_t base, int banknum)
|
|||
info->vendor = modes[i];
|
||||
info->start[0] =
|
||||
(ulong)map_physmem(base,
|
||||
info->portwith,
|
||||
info->portwidth,
|
||||
MAP_NOCACHE);
|
||||
if (info->portwidth == FLASH_CFI_8BIT
|
||||
&& info->interface == FLASH_CFI_X8X16) {
|
||||
|
@ -1640,7 +1640,7 @@ static int flash_detect_legacy(phys_addr_t base, int banknum)
|
|||
if (jedec_flash_match(info, info->start[0]))
|
||||
break;
|
||||
else
|
||||
unmap_physmem(info->start[0],
|
||||
unmap_physmem((void *)info->start[0],
|
||||
MAP_NOCACHE);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue