diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-05-12 12:05:21 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-05-12 12:05:21 +0000 |
commit | e710aeeab10e2b420ad012c0d9fb639266a63515 (patch) | |
tree | 772ed4e14639b7d0f8f9d96a67a9ccd660c15f0f /target/linux/generic/patches-2.6.38/450-mtd_plat_nand_chip_fixup.patch | |
parent | 08ed044595b404fa626f71c9b1c1fbc599ad7587 (diff) | |
download | upstream-e710aeeab10e2b420ad012c0d9fb639266a63515.tar.gz upstream-e710aeeab10e2b420ad012c0d9fb639266a63515.tar.bz2 upstream-e710aeeab10e2b420ad012c0d9fb639266a63515.zip |
linux/2.6.38: R.I.P.
It is used only by the broken coldfire target.
SVN-Revision: 31688
Diffstat (limited to 'target/linux/generic/patches-2.6.38/450-mtd_plat_nand_chip_fixup.patch')
-rw-r--r-- | target/linux/generic/patches-2.6.38/450-mtd_plat_nand_chip_fixup.patch | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/target/linux/generic/patches-2.6.38/450-mtd_plat_nand_chip_fixup.patch b/target/linux/generic/patches-2.6.38/450-mtd_plat_nand_chip_fixup.patch deleted file mode 100644 index 8ad32a8aad..0000000000 --- a/target/linux/generic/patches-2.6.38/450-mtd_plat_nand_chip_fixup.patch +++ /dev/null @@ -1,37 +0,0 @@ ---- - drivers/mtd/nand/plat_nand.c | 13 ++++++++++++- - include/linux/mtd/nand.h | 1 + - 2 files changed, 13 insertions(+), 1 deletion(-) - ---- a/include/linux/mtd/nand.h -+++ b/include/linux/mtd/nand.h -@@ -622,6 +622,7 @@ struct platform_nand_chip { - int chip_delay; - unsigned int options; - const char **part_probe_types; -+ int (*chip_fixup)(struct mtd_info *mtd); - void (*set_parts)(uint64_t size, struct platform_nand_chip *chip); - void *priv; - }; ---- a/drivers/mtd/nand/plat_nand.c -+++ b/drivers/mtd/nand/plat_nand.c -@@ -96,7 +96,18 @@ static int __devinit plat_nand_probe(str - } - - /* 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, NULL)) { -+ res = -ENXIO; -+ goto out; -+ } -+ -+ if (pdata->chip.chip_fixup) { -+ res = pdata->chip.chip_fixup(&data->mtd); -+ if (res) -+ goto out; -+ } -+ -+ if (nand_scan_tail(&data->mtd)) { - err = -ENXIO; - goto out; - } |