kernel: mtk_bmt: allow get_mapping_block to return an error
authorFelix Fietkau <nbd@nbd.name>
Wed, 9 Mar 2022 14:54:52 +0000 (15:54 +0100)
committerFelix Fietkau <nbd@nbd.name>
Mon, 10 Oct 2022 10:58:18 +0000 (12:58 +0200)
commit0c21f06ef7544d7492537369b5c4c1ae3b87c935
tree272527fe1d398845bab910bc6f8c3dd61fa56006
parenta2ce32579f37cc19a99b02ab84bc95a9b6729390
kernel: mtk_bmt: allow get_mapping_block to return an error

Used by the mapping implementation to indicate that no backing block is
available

Signed-off-by: Felix Fietkau <nbd@nbd.name>
(cherry-picked from commit b4c7f8c5f7a2dab76fe90849e112c6bd8f80ab19)
target/linux/generic/files/drivers/mtd/nand/mtk_bmt.c
target/linux/generic/files/drivers/mtd/nand/mtk_bmt.h
target/linux/generic/files/drivers/mtd/nand/mtk_bmt_bbt.c
target/linux/generic/files/drivers/mtd/nand/mtk_bmt_v2.c