mediatek: bmt: use generic mtd api
authorChuanhong Guo <gch981213@gmail.com>
Sat, 4 Dec 2021 14:24:59 +0000 (22:24 +0800)
committerFelix Fietkau <nbd@nbd.name>
Sat, 4 Dec 2021 21:47:17 +0000 (22:47 +0100)
commit2d49e49b1854c2234aa343847594245214a4edf9
tree382203792d6829bbf50df98414bb5405f0cc62b5
parentdd681838d370f1f6f6fa1bf1f22b0414322292f3
mediatek: bmt: use generic mtd api

BMT replaces nand-specific ops for erasing and writing, but the
mtk-snand driver only implements generic mtd api.

Replace erase, block_isbad, block_markbad in mtd_info for generic mtd
drivers.

Fixes: b600aee3ed ("mediatek: attach bmt to the new snand driver")
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
target/linux/mediatek/patches-5.10/330-mtk-bmt-support.patch