linux/3.3: fix compiler warnings in the plat_nand driver
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 25 Apr 2012 12:57:29 +0000 (12:57 +0000)
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 25 Apr 2012 12:57:29 +0000 (12:57 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31473 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/generic/patches-3.3/450-mtd_plat_nand_chip_fixup.patch

index 725877a..fd2b9b5 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;
 +      }
 +