linux/3.3: fix compiler warnings in the plat_nand driver
authorGabor Juhos <juhosg@openwrt.org>
Wed, 25 Apr 2012 12:57:29 +0000 (12:57 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Wed, 25 Apr 2012 12:57:29 +0000 (12:57 +0000)
SVN-Revision: 31473

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;
 +      }
 +