From patchwork Wed Jun 1 13:56:40 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: nand: Remove meaningless delay from nand_unlock Date: Wed, 01 Jun 2011 03:56:40 -0000 From: Jiri Pinkava X-Patchwork-Id: 98189 Message-Id: <1306936600-28870-1-git-send-email-jiri.pinkava@vscht.cz> To: Cc: linux-mtd@lists.infradead.org, Jiri Pinkava , dwmw2@infradead.org From: Jiri Pinkava 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 Acked-by: Vimal Singh --- drivers/mtd/nand/nand_base.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c index a46e9bb..290a1db 100644 --- a/drivers/mtd/nand/nand_base.c +++ b/drivers/mtd/nand/nand_base.c @@ -919,7 +919,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", @@ -1028,7 +1027,6 @@ int nand_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) /* 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",