mirror of https://github.com/hak5/openwrt.git
linux/3.3: fix compiler warnings in the plat_nand driver
SVN-Revision: 31473lede-17.01
parent
4319d95842
commit
43d67fa995
|
@ -21,13 +21,13 @@
|
||||||
/* Scan to find existence of the device */
|
/* Scan to find existence of the device */
|
||||||
- if (nand_scan(&data->mtd, pdata->chip.nr_chips)) {
|
- if (nand_scan(&data->mtd, pdata->chip.nr_chips)) {
|
||||||
+ if (nand_scan_ident(&data->mtd, pdata->chip.nr_chips, NULL)) {
|
+ if (nand_scan_ident(&data->mtd, pdata->chip.nr_chips, NULL)) {
|
||||||
+ res = -ENXIO;
|
+ err = -ENXIO;
|
||||||
+ goto out;
|
+ goto out;
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ if (pdata->chip.chip_fixup) {
|
+ if (pdata->chip.chip_fixup) {
|
||||||
+ res = pdata->chip.chip_fixup(&data->mtd);
|
+ err = pdata->chip.chip_fixup(&data->mtd);
|
||||||
+ if (res)
|
+ if (err)
|
||||||
+ goto out;
|
+ goto out;
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
|
|
Loading…
Reference in New Issue