summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/raw/nand_base.c
diff options
context:
space:
mode:
authorMiquel Raynal <miquel.raynal@bootlin.com>2020-08-27 10:52:04 +0200
committerMiquel Raynal <miquel.raynal@bootlin.com>2020-09-28 15:59:49 +0200
commitc441bcd31266dc403beb6f2c2f095696a1be5325 (patch)
tree9a39a1adc7b02866ab8fb0c0dd1b92e56cdd2434 /drivers/mtd/nand/raw/nand_base.c
parent93ef92f6f42275e3d6070b1c5020bfca0e614fff (diff)
downloadlinux-c441bcd31266dc403beb6f2c2f095696a1be5325.tar.bz2
mtd: rawnand: Make use of the ECC framework
Just enable the ECC framework with raw NAND so that we can drop, one by one, all the unnecessary/redundant definitions. Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20200827085208.16276-17-miquel.raynal@bootlin.com
Diffstat (limited to 'drivers/mtd/nand/raw/nand_base.c')
-rw-r--r--drivers/mtd/nand/raw/nand_base.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/nand/raw/nand_base.c b/drivers/mtd/nand/raw/nand_base.c
index 002d6397cfd7..2c102aeecdc1 100644
--- a/drivers/mtd/nand/raw/nand_base.c
+++ b/drivers/mtd/nand/raw/nand_base.c
@@ -34,6 +34,7 @@
#include <linux/mm.h>
#include <linux/types.h>
#include <linux/mtd/mtd.h>
+#include <linux/mtd/nand.h>
#include <linux/mtd/nand_ecc.h>
#include <linux/mtd/nand_bch.h>
#include <linux/interrupt.h>