kernel: fix arch-dependent bug in hso module
[openwrt.git] / target / linux / generic / patches-3.3 / 450-mtd_plat_nand_chip_fixup.patch
index 725877a9fe545756bf1fe9a23121c4a599194e49..fd2b9b57b90fd32efe907b2a062d887309f6750b 100644 (file)
        /* Scan to find existence of the device */
 -      if (nand_scan(&data->mtd, pdata->chip.nr_chips)) {
 +      if (nand_scan_ident(&data->mtd, pdata->chip.nr_chips, NULL)) {
-+              res = -ENXIO;
++              err = -ENXIO;
 +              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;
 +      }
 +