ramips: remove 2.6.3[24] support
[openwrt.git] / target / linux / generic / patches-2.6.34 / 080-mtd_plat_nand_chip_fixup.patch
index 40cd421..04d63fa 100644 (file)
        /* Scan to find existance of the device */
 -      if (nand_scan(&data->mtd, pdata->chip.nr_chips)) {
 +      if (nand_scan_ident(&data->mtd, pdata->chip.nr_chips)) {
        /* Scan to find existance of the device */
 -      if (nand_scan(&data->mtd, pdata->chip.nr_chips)) {
 +      if (nand_scan_ident(&data->mtd, pdata->chip.nr_chips)) {
-+              res = -ENXIO;
++              err = -ENXIO;
 +              goto out;
 +      }
 +
 +      if (pdata->chip.chip_fixup) {
 +              goto out;
 +      }
 +
 +      if (pdata->chip.chip_fixup) {
-+              res = pdata->chip.chip_fixup(&data->mtd);
-+              if (res)
++              err = pdata->chip.chip_fixup(&data->mtd);
++              if (err)
 +                      goto out;
 +      }
 +
 +                      goto out;
 +      }
 +
This page took 0.020337 seconds and 4 git commands to generate.