diff options
author | Miquel Raynal <miquel.raynal@bootlin.com> | 2020-08-27 11:52:05 +0300 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2020-09-30 17:43:52 +0300 |
commit | 1e3b37aab958861a9d0c01ff6dbec96a82743701 (patch) | |
tree | a2e1a4f195d65fa6264c3e80dc5ce97f8c61ca76 /drivers/mtd/nand/raw/atmel | |
parent | c441bcd31266dc403beb6f2c2f095696a1be5325 (diff) | |
download | linux-1e3b37aab958861a9d0c01ff6dbec96a82743701.tar.xz |
mtd: rawnand: Use the ECC framework OOB layouts
No need to have our own in the raw NAND core.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20200827085208.16276-18-miquel.raynal@bootlin.com
Diffstat (limited to 'drivers/mtd/nand/raw/atmel')
-rw-r--r-- | drivers/mtd/nand/raw/atmel/nand-controller.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/raw/atmel/nand-controller.c b/drivers/mtd/nand/raw/atmel/nand-controller.c index 3d162fdc9ce2..7fcc5e67163e 100644 --- a/drivers/mtd/nand/raw/atmel/nand-controller.c +++ b/drivers/mtd/nand/raw/atmel/nand-controller.c @@ -1108,7 +1108,7 @@ static int atmel_nand_pmecc_init(struct nand_chip *chip) chip->options |= NAND_NO_SUBPAGE_WRITE; - mtd_set_ooblayout(mtd, &nand_ooblayout_lp_ops); + mtd_set_ooblayout(mtd, nand_get_large_page_ooblayout()); return 0; } |