[PATCH] nand: Remove meaningless delay from nand_unlock
jiri.pinkava at vscht.cz
jiri.pinkava at vscht.cz
Sat Apr 9 22:30:11 EDT 2011
From: Jiří Pinkava <jiri.pinkava at vscht.cz>
This delay is meaningless. If delay is needed it is device specific
and must be reimplemented by specific driver, otherwise no delay is needed.
This function is not used by any current kernel code, affects only
external code (like main).
Signed-off-by: Jiri Pinkava <jiri.pinkava at vscht.cz>
---
drivers/mtd/nand/nand_base.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
index 2aef58e..5b5aff5 100644
--- a/drivers/mtd/nand/nand_base.c
+++ b/drivers/mtd/nand/nand_base.c
@@ -922,7 +922,6 @@ static int __nand_unlock(struct mtd_info *mtd, loff_t ofs,
/* Call wait ready function */
status = chip->waitfunc(mtd, chip);
- udelay(1000);
/* See if device thinks it succeeded */
if (status & 0x01) {
DEBUG(MTD_DEBUG_LEVEL0, "%s: Error status = 0x%08x\n",
--
1.7.4.4
More information about the linux-mtd
mailing list