1 --- a/drivers/mtd/nand/ar934x_nfc.c
2 +++ b/drivers/mtd/nand/ar934x_nfc.c
3 @@ -762,6 +762,18 @@ ar934x_nfc_read_buf(struct mtd_info *mtd
4 nfc->buf_index = buf_index;
8 +ar934x_nfc_verify_buf(struct mtd_info *mtd, const u_char *buf, int len)
12 + for (i = 0; i < len; i++)
13 + if (buf[i] != ar934x_nfc_read_byte(mtd))
20 ar934x_nfc_hw_init(struct ar934x_nfc *nfc)
22 @@ -1048,6 +1060,7 @@ ar934x_nfc_probe(struct platform_device
23 nand->read_byte = ar934x_nfc_read_byte;
24 nand->write_buf = ar934x_nfc_write_buf;
25 nand->read_buf = ar934x_nfc_read_buf;
26 + nand->verify_buf = ar934x_nfc_verify_buf;
27 nand->select_chip = ar934x_nfc_select_chip;
29 ret = ar934x_nfc_alloc_buf(nfc, AR934X_NFC_ID_BUF_SIZE);