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>
Wed, 25 Jan 2023 15:45:14 +0000 (23:45 +0800)
commit1f32774dedf192026fd2d35902537f02f0ee4075
tree594dc7e979720e5b5b9afb9d84d5ce78ff5ba9c6
parent28e1770a3bd10014b082669e55af32d8de3f67fb
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>
(cherry picked from commit f183ce35b8ea2fd991ac489fb223b09a1ecb4db0)
target/linux/generic/files/drivers/mtd/nand/mtk_bmt.h