[MTD NAND] Fix lookup error in nand_get_flash_type()
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Sat Jul 15 08:59:02 EDT 2006
Commit: 9a909867d2eca7727d0d5884df96e791e3531f24
Parent: 9d05cd51780c3855976b26cbee265490a0a10be9
commit 9a909867d2eca7727d0d5884df96e791e3531f24
Author: David Woodhouse <dwmw2 at infradead.org>
AuthorDate: Sat Jul 15 13:26:18 2006 +0100
Commit: David Woodhouse <dwmw2 at infradead.org>
CommitDate: Sat Jul 15 13:26:18 2006 +0100
[MTD NAND] Fix lookup error in nand_get_flash_type()
Spotted by liyu <liyu at ccoss.com.cn>
Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
---
drivers/mtd/nand/nand_base.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
index cffd663..119d17c 100644
--- a/drivers/mtd/nand/nand_base.c
+++ b/drivers/mtd/nand/nand_base.c
@@ -2222,7 +2222,7 @@ static struct nand_flash_dev *nand_get_f
}
/* Try to identify manufacturer */
- for (maf_idx = 0; nand_manuf_ids[maf_idx].id != 0x0; maf_id++) {
+ for (maf_idx = 0; nand_manuf_ids[maf_idx].id != 0x0; maf_idx++) {
if (nand_manuf_ids[maf_idx].id == *maf_id)
break;
}
More information about the linux-mtd-cvs
mailing list