Skip to content

Commit

Permalink
mtd: nand: denali: remove unneeded init of ECC_ENABLE register
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Masahiro Yamada authored and Boris Brezillon committed Sep 22, 2017
1 parent 5f2baae commit c70b5eb
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/mtd/nand/denali.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c70b5eb

Please sign in to comment.