Skip to contentSkip to conversation

gen_nand: Fix support for multiple chips

PATCH Applied Marek Vasut 2 participants 2 messages Jul 28, 2010 – Aug 5, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/mtd/nand/plat_nand.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mtd/nand/plat_nand.c +1 -1
index 8d46731..90e143e 100644
@@ -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;
 	}
Signature · 1 line
1.7.1
#1 lore raw
Quoted 4 lines · Marek Vasut

This patch corrects a problem where gen_nand driver assumed there can be only one chip and ignored the pdata->chip.nr_chips value.

Pushed to my l2-mtd-2.6.git / master

Signature · 2 lines
Best Regards,
Artem Bityutskiy (Артём Битюцкий)