summaryrefslogtreecommitdiff
path: root/drivers/mtd/nand/raw/nand_base.c
diff options
context:
space:
mode:
authorBoris Brezillon <boris.brezillon@bootlin.com>2018-07-05 13:27:30 +0300
committerMiquel Raynal <miquel.raynal@bootlin.com>2018-07-18 10:34:22 +0300
commit44b07b921dea5ec997fb929ceaa82582a7415816 (patch)
treeb801feca4eee967b51b99e6af06c1d0c2cc97699 /drivers/mtd/nand/raw/nand_base.c
parent1c3ab61ebcf8cfb5308d2e68e03fd4b4df484e62 (diff)
downloadlinux-44b07b921dea5ec997fb929ceaa82582a7415816.tar.xz
mtd: rawnand: Rename nand_default_bbt() into nand_create_bbt()
Rename nand_default_bbt() into nand_create_bbt() and pass it a nand_chip object to prepare removal of the chip->scan_bbt() hook. We add a temporary nand_default_bbt() wrapper which will be dropped after the removal of ->scan_bbt(). Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'drivers/mtd/nand/raw/nand_base.c')
-rw-r--r--drivers/mtd/nand/raw/nand_base.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/mtd/nand/raw/nand_base.c b/drivers/mtd/nand/raw/nand_base.c
index faac82b1e058..0476e13d47b1 100644
--- a/drivers/mtd/nand/raw/nand_base.c
+++ b/drivers/mtd/nand/raw/nand_base.c
@@ -4924,6 +4924,11 @@ static void nand_shutdown(struct mtd_info *mtd)
nand_get_device(mtd, FL_PM_SUSPENDED);
}
+static int nand_default_bbt(struct mtd_info *mtd)
+{
+ return nand_create_bbt(mtd_to_nand(mtd));
+}
+
/* Set default functions */
static void nand_set_defaults(struct nand_chip *chip)
{