diff options
author | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2018-09-14 23:42:26 +0200 |
---|---|---|
committer | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2018-09-14 23:42:26 +0200 |
commit | b395e3b40e026a437b7179b78f1beddf2d02a7bc (patch) | |
tree | f3118474a7af11fffb228915dcffd7f2580d26ee /target/linux/ramips/patches/102-unused-api-in-nand.patch | |
parent | e266de11dcd0b2d71c445b943bef2f50258fa314 (diff) | |
download | mtk-20170518-b395e3b40e026a437b7179b78f1beddf2d02a7bc.zip mtk-20170518-b395e3b40e026a437b7179b78f1beddf2d02a7bc.tar.gz mtk-20170518-b395e3b40e026a437b7179b78f1beddf2d02a7bc.tar.bz2 |
target/linux/ramips: add all patches
Diffstat (limited to 'target/linux/ramips/patches/102-unused-api-in-nand.patch')
-rwxr-xr-x | target/linux/ramips/patches/102-unused-api-in-nand.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/target/linux/ramips/patches/102-unused-api-in-nand.patch b/target/linux/ramips/patches/102-unused-api-in-nand.patch new file mode 100755 index 0000000..6c986ed --- /dev/null +++ b/target/linux/ramips/patches/102-unused-api-in-nand.patch @@ -0,0 +1,20 @@ +Index: linux-3.10.14/drivers/mtd/nand/mtk_nand.c +=================================================================== +--- linux-3.10.14.orig/drivers/mtd/nand/mtk_nand.c ++++ linux-3.10.14/drivers/mtd/nand/mtk_nand.c +@@ -3720,6 +3720,7 @@ static int mtk_nand_write_oob_raw(struct + return 0; + } + ++#ifndef NAND_JFFS2_WORKAROUND + static int mtk_nand_write_oob_hw(struct mtd_info *mtd, struct nand_chip *chip, int page) + { + int i, iter; +@@ -3828,6 +3829,7 @@ static int mtk_nand_write_oob(struct mtd + + return 0; + } ++#endif + + int mtk_nand_block_markbad_hw(struct mtd_info *mtd, loff_t offset) + { |