aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files/drivers
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-11-20 16:29:42 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-11-20 16:29:42 +0000
commit819423778947e01613bfe8f8664639f34e5750b6 (patch)
tree0f32f94ee839e4b0748e98047040e7d4316ed342 /target/linux/ar71xx/files/drivers
parent4468fd7ae4e7ede469c4f2be8b606a491cef6c59 (diff)
downloadupstream-819423778947e01613bfe8f8664639f34e5750b6.tar.gz
upstream-819423778947e01613bfe8f8664639f34e5750b6.tar.bz2
upstream-819423778947e01613bfe8f8664639f34e5750b6.zip
ar71xx: make ar934x_nfc driver compatible with 3.7
Also add compatibility patches for the currently supported kernels. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 34278
Diffstat (limited to 'target/linux/ar71xx/files/drivers')
-rw-r--r--target/linux/ar71xx/files/drivers/mtd/nand/ar934x_nfc.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/target/linux/ar71xx/files/drivers/mtd/nand/ar934x_nfc.c b/target/linux/ar71xx/files/drivers/mtd/nand/ar934x_nfc.c
index 9434d0fe06..7fd04ca621 100644
--- a/target/linux/ar71xx/files/drivers/mtd/nand/ar934x_nfc.c
+++ b/target/linux/ar71xx/files/drivers/mtd/nand/ar934x_nfc.c
@@ -762,18 +762,6 @@ ar934x_nfc_read_buf(struct mtd_info *mtd, u8 *buf, int len)
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)
{
@@ -1059,7 +1047,6 @@ ar934x_nfc_probe(struct platform_device *pdev)
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);