mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
drivers: rkflash: Fix error in mtd spinor chip erase
Change-Id: I2ada96181a24ef4d450250d9ca6a089d4833e312 Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
This commit is contained in:
@@ -51,7 +51,7 @@ static int sfc_erase_mtd(struct mtd_info *mtd, struct erase_info *instr)
|
||||
mutex_lock(p_dev->lock);
|
||||
|
||||
if (len == p_dev->mtd.size) {
|
||||
ret = snor_erase(p_dev->snor, 0, CMD_CHIP_ERASE);
|
||||
ret = snor_erase(p_dev->snor, 0, ERASE_CHIP);
|
||||
if (ret) {
|
||||
rkflash_print_error("snor_erase CHIP 0x%x ret=%d\n",
|
||||
addr, ret);
|
||||
|
||||
Reference in New Issue
Block a user