X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/c5552ad03973839d83d32d7108f20c00f192633b..c4174021acc57c9d482e4496733352bcac5a0d13:/target/linux/generic/patches-2.6.34/080-mtd_plat_nand_chip_fixup.patch diff --git a/target/linux/generic/patches-2.6.34/080-mtd_plat_nand_chip_fixup.patch b/target/linux/generic/patches-2.6.34/080-mtd_plat_nand_chip_fixup.patch index 16ce76ce8..04d63fad6 100644 --- a/target/linux/generic/patches-2.6.34/080-mtd_plat_nand_chip_fixup.patch +++ b/target/linux/generic/patches-2.6.34/080-mtd_plat_nand_chip_fixup.patch @@ -14,15 +14,15 @@ } /* Scan to find existance of the device */ -- if (nand_scan(&data->mtd, 1)) { -+ if (nand_scan_ident(&data->mtd, 1)) { -+ res = -ENXIO; +- if (nand_scan(&data->mtd, pdata->chip.nr_chips)) { ++ if (nand_scan_ident(&data->mtd, pdata->chip.nr_chips)) { ++ 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; + } +