diff options
Diffstat (limited to 'drivers/mtd/nand/tmio_nand.c')
-rw-r--r-- | drivers/mtd/nand/tmio_nand.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/mtd/nand/tmio_nand.c b/drivers/mtd/nand/tmio_nand.c index 5aa518081c51..508e9e04b092 100644 --- a/drivers/mtd/nand/tmio_nand.c +++ b/drivers/mtd/nand/tmio_nand.c | |||
@@ -256,18 +256,6 @@ static void tmio_nand_read_buf(struct mtd_info *mtd, u_char *buf, int len) | |||
256 | tmio_ioread16_rep(tmio->fcr + FCR_DATA, buf, len >> 1); | 256 | tmio_ioread16_rep(tmio->fcr + FCR_DATA, buf, len >> 1); |
257 | } | 257 | } |
258 | 258 | ||
259 | static int | ||
260 | tmio_nand_verify_buf(struct mtd_info *mtd, const u_char *buf, int len) | ||
261 | { | ||
262 | struct tmio_nand *tmio = mtd_to_tmio(mtd); | ||
263 | u16 *p = (u16 *) buf; | ||
264 | |||
265 | for (len >>= 1; len; len--) | ||
266 | if (*(p++) != tmio_ioread16(tmio->fcr + FCR_DATA)) | ||
267 | return -EFAULT; | ||
268 | return 0; | ||
269 | } | ||
270 | |||
271 | static void tmio_nand_enable_hwecc(struct mtd_info *mtd, int mode) | 259 | static void tmio_nand_enable_hwecc(struct mtd_info *mtd, int mode) |
272 | { | 260 | { |
273 | struct tmio_nand *tmio = mtd_to_tmio(mtd); | 261 | struct tmio_nand *tmio = mtd_to_tmio(mtd); |
@@ -424,7 +412,6 @@ static int tmio_probe(struct platform_device *dev) | |||
424 | nand_chip->read_byte = tmio_nand_read_byte; | 412 | nand_chip->read_byte = tmio_nand_read_byte; |
425 | nand_chip->write_buf = tmio_nand_write_buf; | 413 | nand_chip->write_buf = tmio_nand_write_buf; |
426 | nand_chip->read_buf = tmio_nand_read_buf; | 414 | nand_chip->read_buf = tmio_nand_read_buf; |
427 | nand_chip->verify_buf = tmio_nand_verify_buf; | ||
428 | 415 | ||
429 | /* set eccmode using hardware ECC */ | 416 | /* set eccmode using hardware ECC */ |
430 | nand_chip->ecc.mode = NAND_ECC_HW; | 417 | nand_chip->ecc.mode = NAND_ECC_HW; |