Skip to content

Commit

Permalink
mtd: gen_nand: fix support for multiple chips
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
Marek Vasut authored and David Woodhouse committed Aug 6, 2010
1 parent 6f92355 commit 81cbb0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/nand/plat_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 81cbb0b

Please sign in to comment.