projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f92355
)
mtd: gen_nand: fix support for multiple chips
author
Marek Vasut
<marek.vasut@gmail.com>
Wed, 28 Jul 2010 05:36:54 +0000
(07:36 +0200)
committer
David Woodhouse
<David.Woodhouse@intel.com>
Fri, 6 Aug 2010 08:21:56 +0000
(09:21 +0100)
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>
drivers/mtd/nand/plat_nand.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mtd/nand/plat_nand.c
b/drivers/mtd/nand/plat_nand.c
index 8d467315f02be00efd5b124f104feed37a8282b0..90e143e5ad3eb6bef4bc1bd065548237b93fd3f2 100644
(file)
--- 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;
}