1 --- a/drivers/mtd/nand/spi/core.c
2 +++ b/drivers/mtd/nand/spi/core.c
4 #include <linux/string.h>
5 #include <linux/spi/spi.h>
6 #include <linux/spi/spi-mem.h>
7 +#include <linux/mtd/mtk_bmt.h>
9 static int spinand_read_reg_op(struct spinand_device *spinand, u8 reg, u8 *val)
11 @@ -1343,6 +1344,7 @@ static int spinand_probe(struct spi_mem
15 + mtk_bmt_attach(mtd);
16 ret = mtd_device_register(mtd, NULL, 0);
18 goto err_spinand_cleanup;
19 @@ -1350,6 +1352,7 @@ static int spinand_probe(struct spi_mem
23 + mtk_bmt_detach(mtd);
24 spinand_cleanup(spinand);
27 @@ -1368,6 +1371,7 @@ static int spinand_remove(struct spi_mem
31 + mtk_bmt_detach(mtd);
32 spinand_cleanup(spinand);