mtd: nand: remove meaningless delay from nand_unlock
This delay is meaningless. If delay is needed it is device specific and must be reimplemented by specific driver, otherwise no delay is needed. Signed-off-by: Jiri Pinkava <jiri.pinkava@vscht.cz> Acked-by: Vimal Singh <vimal.newwork@gmail.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
This commit is contained in:
Родитель
1754aab9bb
Коммит
d3f2ed520b
|
@ -915,7 +915,6 @@ static int __nand_unlock(struct mtd_info *mtd, loff_t ofs,
|
||||||
|
|
||||||
/* Call wait ready function */
|
/* Call wait ready function */
|
||||||
status = chip->waitfunc(mtd, chip);
|
status = chip->waitfunc(mtd, chip);
|
||||||
udelay(1000);
|
|
||||||
/* See if device thinks it succeeded */
|
/* See if device thinks it succeeded */
|
||||||
if (status & 0x01) {
|
if (status & 0x01) {
|
||||||
DEBUG(MTD_DEBUG_LEVEL0, "%s: Error status = 0x%08x\n",
|
DEBUG(MTD_DEBUG_LEVEL0, "%s: Error status = 0x%08x\n",
|
||||||
|
@ -1024,7 +1023,6 @@ int nand_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len)
|
||||||
|
|
||||||
/* Call wait ready function */
|
/* Call wait ready function */
|
||||||
status = chip->waitfunc(mtd, chip);
|
status = chip->waitfunc(mtd, chip);
|
||||||
udelay(1000);
|
|
||||||
/* See if device thinks it succeeded */
|
/* See if device thinks it succeeded */
|
||||||
if (status & 0x01) {
|
if (status & 0x01) {
|
||||||
DEBUG(MTD_DEBUG_LEVEL0, "%s: Error status = 0x%08x\n",
|
DEBUG(MTD_DEBUG_LEVEL0, "%s: Error status = 0x%08x\n",
|
||||||
|
|
Загрузка…
Ссылка в новой задаче