mtd: rawnand: remove ->legacy.erase and single_erase()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 21 Jan 2019 06:32:07 +0000 (15:32 +0900)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 5 Feb 2019 15:56:11 +0000 (16:56 +0100)
commit2d73f3d66b7052c0175f9f33d271ae50826c222e
tree3eb57b6c311c46b8f0943edfa8d7257aef4fa739
parentd4ea6ed022de33b326cce5ea60a4a80ca0a96750
mtd: rawnand: remove ->legacy.erase and single_erase()

Now that the last user of this hook, denali.c, stopped using it,
we can remove the erase hook from nand_legacy.

I squashed single_erase() because only the difference between
single_erase() and nand_erase_op() is the number of bit shifts.

The status/ret conversion in nand_erase_nand() is unneeded since
commit eb94555e9e97 ("mtd: nand: use usual return values for the
->erase() hook"). Cleaned it up now.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Boris Brezillon <bbrezillon@kernel.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/nand_base.c
include/linux/mtd/rawnand.h