diff options
author | Marek Vasut <marek.vasut@gmail.com> | 2010-07-28 07:36:54 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-08-13 13:31:04 -0700 |
commit | a456e2bf311123a0d2fa313a7e51611ab7b0439e (patch) | |
tree | 71f2b9cad59f814af8ad5214d5cb2a1128f65bea | |
parent | 01806c2cc09e580a312c9812d4c88e7ed9dfffb6 (diff) | |
download | kernel-crypto-a456e2bf311123a0d2fa313a7e51611ab7b0439e.tar.gz kernel-crypto-a456e2bf311123a0d2fa313a7e51611ab7b0439e.tar.xz kernel-crypto-a456e2bf311123a0d2fa313a7e51611ab7b0439e.zip |
mtd: gen_nand: fix support for multiple chips
commit 81cbb0b17796d81cbd92defe113cf2a7c7a21fbb upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | 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 8d467315f02..90e143e5ad3 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; } |