From 2b2fb0d1a48085ecdf7d64048e6386747486d573 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Thu, 29 Oct 2020 12:29:42 +0100 Subject: mtd: nand: drop unused erase_cmd hook chip->erase_cmd is never used, so remove this hook. Signed-off-by: Sascha Hauer --- include/linux/mtd/nand.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'include/linux') diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h index 401f630570..c4bdddc61e 100644 --- a/include/linux/mtd/nand.h +++ b/include/linux/mtd/nand.h @@ -418,8 +418,6 @@ struct nand_buffers { * @ecc: [BOARDSPECIFIC] ECC control structure * @buffers: buffer structure for read/write * @hwcontrol: platform-specific hardware control structure - * @erase_cmd: [INTERN] erase command write function, selectable due - * to AND support. * @scan_bbt: [REPLACEABLE] function to scan bad block table * @chip_delay: [BOARDSPECIFIC] chip dependent delay for transferring * data from array to read regs (tR). @@ -492,7 +490,6 @@ struct nand_chip { void (*cmdfunc)(struct mtd_info *mtd, unsigned command, int column, int page_addr); int(*waitfunc)(struct mtd_info *mtd, struct nand_chip *this); - void (*erase_cmd)(struct mtd_info *mtd, int page); int (*scan_bbt)(struct mtd_info *mtd); int (*errstat)(struct mtd_info *mtd, struct nand_chip *this, int state, int status, int page); -- cgit v1.2.3