summaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2017-09-22 12:46:47 +0900
committerBoris Brezillon <boris.brezillon@free-electrons.com>2017-09-22 09:04:36 +0200
commitc70b5eb20a5dd9b3e4f68e041ad7526c94a2945e (patch)
treea4aaa14b8aca45c7016c051d37bede4c803684e7 /drivers/mtd
parent5f2baae00542b2203e6d0fa77890f64ff741aaf3 (diff)
downloadtalos-op-linux-c70b5eb20a5dd9b3e4f68e041ad7526c94a2945e.tar.gz
talos-op-linux-c70b5eb20a5dd9b3e4f68e041ad7526c94a2945e.zip
mtd: nand: denali: remove unneeded init of ECC_ENABLE register
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> Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/nand/denali.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c
index e567ad9a4ef3..ee688e0042a8 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)
OpenPOWER on IntegriCloud