diff mbox series

[9/9] mtd: nand: denali: remove unneeded init of ECC_ENABLE register

Message ID 1505280046-16608-10-git-send-email-yamada.masahiro@socionext.com
State Accepted
Commit c70b5eb20a5dd9b3e4f68e041ad7526c94a2945e
Headers show
Series mtd: nand: denali: more clean-ups | expand

Commit Message

Masahiro Yamada Sept. 13, 2017, 5:20 a.m. UTC
The ECC correction is properly enabled/disabled before the page
read/write.  There is no need to set up this at the beginning of
the probe.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>

---

 drivers/mtd/nand/denali.c | 2 --
 1 file changed, 2 deletions(-)

-- 
2.7.4


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
diff mbox series

Patch

diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c
index 02ce310..7a2ad47 100644
--- a/drivers/mtd/nand/denali.c
+++ b/drivers/mtd/nand/denali.c
@@ -1101,8 +1101,6 @@  static void denali_hw_init(struct denali_nand_info *denali)
 	iowrite32(CHIP_EN_DONT_CARE__FLAG, denali->reg + CHIP_ENABLE_DONT_CARE);
 
 	iowrite32(0xffff, denali->reg + SPARE_AREA_MARKER);
-
-	iowrite32(1, denali->reg + ECC_ENABLE);
 }
 
 int denali_calc_ecc_bytes(int step_size, int strength)