mtd: gen_nand: fix support for multiple chips
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Fri Aug 6 04:59:02 EDT 2010
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=81cbb0b17796d81cbd92defe113cf2a7c7a21fbb
Commit: 81cbb0b17796d81cbd92defe113cf2a7c7a21fbb
Parent: 6f92355c6e7a680c8f61f3ae30e870d05843b98f
Author: Marek Vasut <marek.vasut at gmail.com>
AuthorDate: Wed Jul 28 07:36:54 2010 +0200
Committer: David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Fri Aug 6 09:21:56 2010 +0100
mtd: gen_nand: fix support for multiple chips
This patch corrects a problem where gen_nand driver assumed there can be only
one chip and ignored the pdata->chip.nr_chips value.
Signed-off-by: Marek Vasut <marek.vasut at gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
drivers/mtd/nand/plat_nand.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/mtd/nand/plat_nand.c b/drivers/mtd/nand/plat_nand.c
index 8d46731..90e143e 100644
--- a/drivers/mtd/nand/plat_nand.c
+++ b/drivers/mtd/nand/plat_nand.c
@@ -91,7 +91,7 @@ static int __devinit plat_nand_probe(struct platform_device *pdev)
}
/* Scan to find existance of the device */
- if (nand_scan(&data->mtd, 1)) {
+ if (nand_scan(&data->mtd, pdata->chip.nr_chips)) {
err = -ENXIO;
goto out;
}
More information about the linux-mtd-cvs
mailing list