From: Takahiro Kuwano <takahiro.kuw...@infineon.com>

We don't have to call spinand_write_enable_op() in spinand_markbad() as
it is called in spinand_write_page().

This is the port of linux commit c6858779f1f549442ec2fe2f69800d8e9cd904ce
(mtd: spinand: Remove write_enable_op() in markbad())

Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevets...@iopsys.eu>
---
 drivers/mtd/nand/spi/core.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/drivers/mtd/nand/spi/core.c b/drivers/mtd/nand/spi/core.c
index 0cddf2dd742..9f150eb8585 100644
--- a/drivers/mtd/nand/spi/core.c
+++ b/drivers/mtd/nand/spi/core.c
@@ -783,10 +783,6 @@ static int spinand_markbad(struct nand_device *nand, const 
struct nand_pos *pos)
        if (ret)
                return ret;
 
-       ret = spinand_write_enable_op(spinand);
-       if (ret)
-               return ret;
-
        return spinand_write_page(spinand, &req);
 }
 
-- 
2.47.2

Reply via email to