public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH] gen_nand: Fix support for multiple chips
@ 2010-07-28  5:36 Marek Vasut
  2010-08-05  4:35 ` Artem Bityutskiy
  0 siblings, 1 reply; 2+ messages in thread
From: Marek Vasut @ 2010-07-28  5:36 UTC (permalink / raw)
  To: linux-mtd; +Cc: hsweeten, dwmw2, linux-kernel, 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.

Signed-off-by: Marek Vasut <marek.vasut@gmail.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;
 	}
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] gen_nand: Fix support for multiple chips
  2010-07-28  5:36 [PATCH] gen_nand: Fix support for multiple chips Marek Vasut
@ 2010-08-05  4:35 ` Artem Bityutskiy
  0 siblings, 0 replies; 2+ messages in thread
From: Artem Bityutskiy @ 2010-08-05  4:35 UTC (permalink / raw)
  To: Marek Vasut; +Cc: hsweeten, dwmw2, linux-mtd, linux-kernel

On Wed, 2010-07-28 at 07:36 +0200, Marek Vasut wrote:
> 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@gmail.com>

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

-- 
Best Regards,
Artem Bityutskiy (Артём Битюцкий)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-08-05  4:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-28  5:36 [PATCH] gen_nand: Fix support for multiple chips Marek Vasut
2010-08-05  4:35 ` Artem Bityutskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox