diff options
author | Tom Rini <trini@konsulko.com> | 2016-04-13 08:27:49 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-04-13 08:27:49 -0400 |
commit | 3f8085e94ae3e8a2996e2f517ecdb608a4b4c09e (patch) | |
tree | 1bc0ce0b93006a607362247bd47afdf79dd9fe1f | |
parent | 814013253fd4cf932d0fb32f7043f09a2a748d9a (diff) | |
parent | 7570a0cc7524ed5818b92a35f00a3fd10b33bc65 (diff) | |
download | u-boot-3f8085e94ae3e8a2996e2f517ecdb608a4b4c09e.tar.gz |
Merge git://www.denx.de/git/u-boot-cfi-flash
-rw-r--r-- | drivers/mtd/cfi_flash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.c index 18831c62e7..8ccaff0e63 100644 --- a/drivers/mtd/cfi_flash.c +++ b/drivers/mtd/cfi_flash.c @@ -979,7 +979,7 @@ static int flash_write_cfibuffer (flash_info_t * info, ulong dest, uchar * cp, case CFI_CMDSET_AMD_STANDARD: case CFI_CMDSET_AMD_EXTENDED: - flash_unlock_seq(info,0); + flash_unlock_seq(info, sector); #ifdef CONFIG_FLASH_SPANSION_S29WS_N offset = ((unsigned long)dst - info->start[sector]) >> shift; |