X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/eac32f68e6ec9e247530ef6aa8eb23da984d1239..2d96209135fb51c77d06c872164a1d7402820a48:/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 40cd42174..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 @@ -16,13 +16,13 @@ /* 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) { -+ res = pdata->chip.chip_fixup(&data->mtd); -+ if (res) ++ err = pdata->chip.chip_fixup(&data->mtd); ++ if (err) + goto out; + } +