|
@@ -86,10 +86,9 @@ static int plat_nand_probe(struct platform_device *pdev)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/* Scan to find existence of the device */
|
|
/* Scan to find existence of the device */
|
|
|
- if (nand_scan(mtd, pdata->chip.nr_chips)) {
|
|
|
|
|
- err = -ENXIO;
|
|
|
|
|
|
|
+ err = nand_scan(mtd, pdata->chip.nr_chips);
|
|
|
|
|
+ if (err)
|
|
|
goto out;
|
|
goto out;
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
part_types = pdata->chip.part_probe_types;
|
|
part_types = pdata->chip.part_probe_types;
|
|
|
|
|
|