diff options
author | Boris Brezillon <boris.brezillon@free-electrons.com> | 2017-03-16 04:02:42 -0400 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2017-04-25 08:18:30 -0400 |
commit | f107d7a43923a83d837b3ea3c7b7de58cd014bbd (patch) | |
tree | 131dd53ddd8f32d518ddda44254e0a6f5c9b7a0e /drivers/mtd/nand | |
parent | 82d0bf3417bd4a8f98b54da72d80c19d3d227800 (diff) |
mtd: nand: Remove unused chip->write_page() hook
The last/only user of the chip->write_page() hook (the Atmel NAND
controller driver) has been reworked and is no longer specifying a custom
->write_page() implementation.
Drop this hook before someone else start abusing it.
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Reviewed-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'drivers/mtd/nand')
-rw-r--r-- | drivers/mtd/nand/nand_base.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c index c4c3386e4c0a..36258e69a389 100644 --- a/drivers/mtd/nand/nand_base.c +++ b/drivers/mtd/nand/nand_base.c | |||
@@ -2633,7 +2633,7 @@ static int nand_write_page_syndrome(struct mtd_info *mtd, | |||
2633 | } | 2633 | } |
2634 | 2634 | ||
2635 | /** | 2635 | /** |
2636 | * nand_write_page - [REPLACEABLE] write one page | 2636 | * nand_write_page - write one page |
2637 | * @mtd: MTD device structure | 2637 | * @mtd: MTD device structure |
2638 | * @chip: NAND chip descriptor | 2638 | * @chip: NAND chip descriptor |
2639 | * @offset: address offset within the page | 2639 | * @offset: address offset within the page |
@@ -2836,9 +2836,10 @@ static int nand_do_write_ops(struct mtd_info *mtd, loff_t to, | |||
2836 | /* We still need to erase leftover OOB data */ | 2836 | /* We still need to erase leftover OOB data */ |
2837 | memset(chip->oob_poi, 0xff, mtd->oobsize); | 2837 | memset(chip->oob_poi, 0xff, mtd->oobsize); |
2838 | } | 2838 | } |
2839 | ret = chip->write_page(mtd, chip, column, bytes, wbuf, | 2839 | |
2840 | oob_required, page, cached, | 2840 | ret = nand_write_page(mtd, chip, column, bytes, wbuf, |
2841 | (ops->mode == MTD_OPS_RAW)); | 2841 | oob_required, page, cached, |
2842 | (ops->mode == MTD_OPS_RAW)); | ||
2842 | if (ret) | 2843 | if (ret) |
2843 | break; | 2844 | break; |
2844 | 2845 | ||
@@ -4548,9 +4549,6 @@ int nand_scan_tail(struct mtd_info *mtd) | |||
4548 | } | 4549 | } |
4549 | } | 4550 | } |
4550 | 4551 | ||
4551 | if (!chip->write_page) | ||
4552 | chip->write_page = nand_write_page; | ||
4553 | |||
4554 | /* | 4552 | /* |
4555 | * Check ECC mode, default to software if 3byte/512byte hardware ECC is | 4553 | * Check ECC mode, default to software if 3byte/512byte hardware ECC is |
4556 | * selected and we have 256 byte pagesize fallback to software ECC | 4554 | * selected and we have 256 byte pagesize fallback to software ECC |