summaryrefslogtreecommitdiff
path: root/target/linux/ramips/patches/102-unused-api-in-nand.patch
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2018-09-14 23:42:26 +0200
committerLudovic Pouzenc <ludovic@pouzenc.fr>2018-09-14 23:42:26 +0200
commitb395e3b40e026a437b7179b78f1beddf2d02a7bc (patch)
treef3118474a7af11fffb228915dcffd7f2580d26ee /target/linux/ramips/patches/102-unused-api-in-nand.patch
parente266de11dcd0b2d71c445b943bef2f50258fa314 (diff)
downloadmtk-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-xtarget/linux/ramips/patches/102-unused-api-in-nand.patch20
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)
+ {