diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mtd/nand/nand_base.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c index 1a03b7f673ce..1d5c951ebcb0 100644 --- a/drivers/mtd/nand/nand_base.c +++ b/drivers/mtd/nand/nand_base.c | |||
@@ -899,7 +899,7 @@ static int __nand_unlock(struct mtd_info *mtd, loff_t ofs, | |||
899 | /* Call wait ready function */ | 899 | /* Call wait ready function */ |
900 | status = chip->waitfunc(mtd, chip); | 900 | status = chip->waitfunc(mtd, chip); |
901 | /* See if device thinks it succeeded */ | 901 | /* See if device thinks it succeeded */ |
902 | if (status & 0x01) { | 902 | if (status & NAND_STATUS_FAIL) { |
903 | pr_debug("%s: error status = 0x%08x\n", | 903 | pr_debug("%s: error status = 0x%08x\n", |
904 | __func__, status); | 904 | __func__, status); |
905 | ret = -EIO; | 905 | ret = -EIO; |
@@ -1004,7 +1004,7 @@ int nand_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) | |||
1004 | /* Call wait ready function */ | 1004 | /* Call wait ready function */ |
1005 | status = chip->waitfunc(mtd, chip); | 1005 | status = chip->waitfunc(mtd, chip); |
1006 | /* See if device thinks it succeeded */ | 1006 | /* See if device thinks it succeeded */ |
1007 | if (status & 0x01) { | 1007 | if (status & NAND_STATUS_FAIL) { |
1008 | pr_debug("%s: error status = 0x%08x\n", | 1008 | pr_debug("%s: error status = 0x%08x\n", |
1009 | __func__, status); | 1009 | __func__, status); |
1010 | ret = -EIO; | 1010 | ret = -EIO; |