diff options
author | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-08-22 17:08:37 +0000 |
---|---|---|
committer | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-08-22 17:08:37 +0000 |
commit | 56572f716fc33a0e156f4de138be381e118e88e6 (patch) | |
tree | 048813cefa7eb429697c3f441b8a854459b91671 /target/linux/generic/patches-2.6.34/080-mtd_plat_nand_chip_fixup.patch | |
parent | fa7498e33f24be98526a28ce534663535bf2f745 (diff) |
[kernel] update to 2.6.34.5
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22768 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic/patches-2.6.34/080-mtd_plat_nand_chip_fixup.patch')
-rw-r--r-- | target/linux/generic/patches-2.6.34/080-mtd_plat_nand_chip_fixup.patch | 6 |
1 files changed, 3 insertions, 3 deletions
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 40cd42174f..04d63fad66 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; + } + |