diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-12-17 22:28:09 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-12-17 22:28:09 +0000 |
commit | fc0da6852e9b0586d6cd1ea79378824639b56e01 (patch) | |
tree | 8a36b55916665137eb580e0265282fb4f820e707 /target/linux/ar71xx/patches-3.3/a05-ar934x_nfc-add-buffer-verification.patch | |
parent | bf34eeaea4ad8079fdc188dd0b8ff834401a9b31 (diff) | |
download | upstream-fc0da6852e9b0586d6cd1ea79378824639b56e01.tar.gz upstream-fc0da6852e9b0586d6cd1ea79378824639b56e01.tar.bz2 upstream-fc0da6852e9b0586d6cd1ea79378824639b56e01.zip |
ar71xx: nuke 3.3 support
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34743
Diffstat (limited to 'target/linux/ar71xx/patches-3.3/a05-ar934x_nfc-add-buffer-verification.patch')
-rw-r--r-- | target/linux/ar71xx/patches-3.3/a05-ar934x_nfc-add-buffer-verification.patch | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/target/linux/ar71xx/patches-3.3/a05-ar934x_nfc-add-buffer-verification.patch b/target/linux/ar71xx/patches-3.3/a05-ar934x_nfc-add-buffer-verification.patch deleted file mode 100644 index 69027ade9a..0000000000 --- a/target/linux/ar71xx/patches-3.3/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) - { -@@ -1073,6 +1085,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); |