summaryrefslogtreecommitdiff
path: root/target/linux/ar71xx/patches-3.6/a05-ar934x_nfc-add-buffer-verification.patch
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-01-12 12:25:38 +0000
committerGabor Juhos <juhosg@openwrt.org>2013-01-12 12:25:38 +0000
commiteb2188c0e229799d7fc619fbff66d70f8f5b76c6 (patch)
tree5f58304bf684bc84e183fd5fc7ad99bd94786a41 /target/linux/ar71xx/patches-3.6/a05-ar934x_nfc-add-buffer-verification.patch
parentfe86bc937096e4b349c4394a71bc3b48daae45db (diff)
downloadmtk-20170518-eb2188c0e229799d7fc619fbff66d70f8f5b76c6.zip
mtk-20170518-eb2188c0e229799d7fc619fbff66d70f8f5b76c6.tar.gz
mtk-20170518-eb2188c0e229799d7fc619fbff66d70f8f5b76c6.tar.bz2
ar71xx: remove 3.6 support
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 35114
Diffstat (limited to 'target/linux/ar71xx/patches-3.6/a05-ar934x_nfc-add-buffer-verification.patch')
-rw-r--r--target/linux/ar71xx/patches-3.6/a05-ar934x_nfc-add-buffer-verification.patch29
1 files changed, 0 insertions, 29 deletions
diff --git a/target/linux/ar71xx/patches-3.6/a05-ar934x_nfc-add-buffer-verification.patch b/target/linux/ar71xx/patches-3.6/a05-ar934x_nfc-add-buffer-verification.patch
deleted file mode 100644
index e83c666..0000000
--- a/target/linux/ar71xx/patches-3.6/a05-ar934x_nfc-add-buffer-verification.patch
+++ /dev/null
@@ -1,29 +0,0 @@
---- a/drivers/mtd/nand/ar934x_nfc.c
-+++ b/drivers/mtd/nand/ar934x_nfc.c
-@@ -786,6 +786,18 @@ ar934x_nfc_read_buf(struct mtd_info *mtd
- nfc->buf_index = buf_index;
- }
-
-+static int
-+ar934x_nfc_verify_buf(struct mtd_info *mtd, const u_char *buf, int len)
-+{
-+ int i;
-+
-+ for (i = 0; i < len; i++)
-+ if (buf[i] != ar934x_nfc_read_byte(mtd))
-+ return -EFAULT;
-+
-+ return 0;
-+}
-+
- static void
- ar934x_nfc_hw_init(struct ar934x_nfc *nfc)
- {
-@@ -1072,6 +1084,7 @@ ar934x_nfc_probe(struct platform_device
- nand->read_byte = ar934x_nfc_read_byte;
- nand->write_buf = ar934x_nfc_write_buf;
- nand->read_buf = ar934x_nfc_read_buf;
-+ nand->verify_buf = ar934x_nfc_verify_buf;
- nand->select_chip = ar934x_nfc_select_chip;
-
- ret = ar934x_nfc_alloc_buf(nfc, AR934X_NFC_ID_BUF_SIZE);