diff options
Diffstat (limited to 'drivers/mtd/nand/r852.c')
-rw-r--r-- | drivers/mtd/nand/r852.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/drivers/mtd/nand/r852.c b/drivers/mtd/nand/r852.c index 8cb627751c9c..4495f8551fa0 100644 --- a/drivers/mtd/nand/r852.c +++ b/drivers/mtd/nand/r852.c | |||
@@ -309,27 +309,6 @@ static uint8_t r852_read_byte(struct mtd_info *mtd) | |||
309 | return r852_read_reg(dev, R852_DATALINE); | 309 | return r852_read_reg(dev, R852_DATALINE); |
310 | } | 310 | } |
311 | 311 | ||
312 | |||
313 | /* | ||
314 | * Readback the buffer to verify it | ||
315 | */ | ||
316 | int r852_verify_buf(struct mtd_info *mtd, const uint8_t *buf, int len) | ||
317 | { | ||
318 | struct r852_device *dev = r852_get_dev(mtd); | ||
319 | |||
320 | /* We can't be sure about anything here... */ | ||
321 | if (dev->card_unstable) | ||
322 | return -1; | ||
323 | |||
324 | /* This will never happen, unless you wired up a nand chip | ||
325 | with > 512 bytes page size to the reader */ | ||
326 | if (len > SM_SECTOR_SIZE) | ||
327 | return 0; | ||
328 | |||
329 | r852_read_buf(mtd, dev->tmp_buffer, len); | ||
330 | return memcmp(buf, dev->tmp_buffer, len); | ||
331 | } | ||
332 | |||
333 | /* | 312 | /* |
334 | * Control several chip lines & send commands | 313 | * Control several chip lines & send commands |
335 | */ | 314 | */ |
@@ -882,7 +861,6 @@ int r852_probe(struct pci_dev *pci_dev, const struct pci_device_id *id) | |||
882 | chip->read_byte = r852_read_byte; | 861 | chip->read_byte = r852_read_byte; |
883 | chip->read_buf = r852_read_buf; | 862 | chip->read_buf = r852_read_buf; |
884 | chip->write_buf = r852_write_buf; | 863 | chip->write_buf = r852_write_buf; |
885 | chip->verify_buf = r852_verify_buf; | ||
886 | 864 | ||
887 | /* ecc */ | 865 | /* ecc */ |
888 | chip->ecc.mode = NAND_ECC_HW_SYNDROME; | 866 | chip->ecc.mode = NAND_ECC_HW_SYNDROME; |