mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
drivers: rkflash: fix compile error
1.more undefined references to `__memzero' follow 2.fix to MTD return value Change-Id: I1adf89873db1e85568deaf2941867b8d45252eff Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -47,7 +47,7 @@ static int sfc_erase_mtd(struct mtd_info *mtd, struct erase_info *instr)
|
||||
if (ret) {
|
||||
rkflash_print_dio("sfc_nand_erase addr 0x%x ret=%d\n",
|
||||
addr, ret);
|
||||
instr->state = MTD_ERASE_FAILED;
|
||||
instr->fail_addr = addr;
|
||||
mutex_unlock(p_dev->lock);
|
||||
return -EIO;
|
||||
}
|
||||
@@ -58,8 +58,6 @@ static int sfc_erase_mtd(struct mtd_info *mtd, struct erase_info *instr)
|
||||
|
||||
mutex_unlock(p_dev->lock);
|
||||
|
||||
instr->state = MTD_ERASE_DONE;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ static int sfc_erase_mtd(struct mtd_info *mtd, struct erase_info *instr)
|
||||
if (ret) {
|
||||
rkflash_print_error("snor_erase CHIP 0x%x ret=%d\n",
|
||||
addr, ret);
|
||||
instr->state = MTD_ERASE_FAILED;
|
||||
instr->fail_addr = addr;
|
||||
mutex_unlock(p_dev->lock);
|
||||
return -EIO;
|
||||
}
|
||||
@@ -63,7 +63,7 @@ static int sfc_erase_mtd(struct mtd_info *mtd, struct erase_info *instr)
|
||||
if (ret) {
|
||||
rkflash_print_error("snor_erase 0x%x ret=%d\n",
|
||||
addr, ret);
|
||||
instr->state = MTD_ERASE_FAILED;
|
||||
instr->fail_addr = addr;
|
||||
mutex_unlock(p_dev->lock);
|
||||
return -EIO;
|
||||
}
|
||||
@@ -74,9 +74,6 @@ static int sfc_erase_mtd(struct mtd_info *mtd, struct erase_info *instr)
|
||||
|
||||
mutex_unlock(p_dev->lock);
|
||||
|
||||
instr->state = MTD_ERASE_DONE;
|
||||
mtd_erase_callback(instr);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user