kernel: mtk-bmt: fix usage of _oob_read
authorChuanhong Guo <gch981213@gmail.com>
Sat, 21 Jan 2023 02:47:59 +0000 (10:47 +0800)
committerChuanhong Guo <gch981213@gmail.com>
Sat, 21 Jan 2023 02:54:23 +0000 (10:54 +0800)
commitf183ce35b8ea2fd991ac489fb223b09a1ecb4db0
tree228f18c4ba684f051d90b2dffa48d6741d3640cc
parent5d409062a30ce39c0f80252ca3f2bcecb1443de5
kernel: mtk-bmt: fix usage of _oob_read

_oob_read returns number of bitflips on success while
bbt_nand_read should return 0.

Fixes: 2d49e49b18 ("mediatek: bmt: use generic mtd api")
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
target/linux/generic/files/drivers/mtd/nand/mtk_bmt.h