diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2005-01-18 11:15:00 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@mtd.linutronix.de> | 2005-05-23 05:29:39 -0400 |
commit | 15266bb74d0156556f9541c9817b778286ffe5d6 (patch) | |
tree | e1f1d40493a3f677cef6792c39e8a4cce0f49388 /drivers | |
parent | 6fc93d8ca7a093feb403aca4ee3cb5bda338392c (diff) |
[MTD] NAND replace yield
Replace yield by msleep. M.Wilcox stared at it and frowned
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
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 2ac452e3ad6b..68a6014f5560 100644 --- a/drivers/mtd/nand/nand_base.c +++ b/drivers/mtd/nand/nand_base.c | |||
@@ -55,7 +55,7 @@ | |||
55 | * The AG-AND chips have nice features for speed improvement, | 55 | * The AG-AND chips have nice features for speed improvement, |
56 | * which are not supported yet. Read / program 4 pages in one go. | 56 | * which are not supported yet. Read / program 4 pages in one go. |
57 | * | 57 | * |
58 | * $Id: nand_base.c,v 1.127 2005/01/17 18:35:22 dmarlin Exp $ | 58 | * $Id: nand_base.c,v 1.128 2005/01/18 16:14:56 gleixner Exp $ |
59 | * | 59 | * |
60 | * This program is free software; you can redistribute it and/or modify | 60 | * This program is free software; you can redistribute it and/or modify |
61 | * it under the terms of the GNU General Public License version 2 as | 61 | * it under the terms of the GNU General Public License version 2 as |
@@ -810,7 +810,7 @@ static int nand_wait(struct mtd_info *mtd, struct nand_chip *this, int state) | |||
810 | if (this->read_byte(mtd) & NAND_STATUS_READY) | 810 | if (this->read_byte(mtd) & NAND_STATUS_READY) |
811 | break; | 811 | break; |
812 | } | 812 | } |
813 | yield (); | 813 | msleep(1); |
814 | } | 814 | } |
815 | status = (int) this->read_byte(mtd); | 815 | status = (int) this->read_byte(mtd); |
816 | return status; | 816 | return status; |