diff options
Diffstat (limited to 'drivers/mtd/nand')
-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 8d467315f02b..90e143e5ad3e 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) | |||
91 | } | 91 | } |
92 | 92 | ||
93 | /* Scan to find existance of the device */ | 93 | /* Scan to find existance of the device */ |
94 | if (nand_scan(&data->mtd, 1)) { | 94 | if (nand_scan(&data->mtd, pdata->chip.nr_chips)) { |
95 | err = -ENXIO; | 95 | err = -ENXIO; |
96 | goto out; | 96 | goto out; |
97 | } | 97 | } |