ARM: s3c24xx: Fix NAND ECC mode for mini2440 board
authorSylwester Nawrocki <snawrocki@kernel.org>
Wed, 16 Aug 2017 20:31:01 +0000 (22:31 +0200)
committerKrzysztof Kozlowski <krzk@kernel.org>
Mon, 21 Aug 2017 17:50:51 +0000 (19:50 +0200)
commit225bd1de16fb2e330be5bad261d427d00293c55e
treeb86a8116616d826aa8edabf832d43acc59b01b16
parentf991ce429a420dbb42b3e4b5a47490c84390d7e1
ARM: s3c24xx: Fix NAND ECC mode for mini2440 board

After commit e9f66ae23c20 ("mtd: s3c2410: make ecc mode configurable via
platform data") booting of the mini2440 board is broken, since
for this board we have CONFIG_MTD_NAND_S3C2410_HWECC set. The console
gets flooded with errors reported by the mtd subsystem.
This patch changes ecc_mode to NAND_ECC_HW which restores proper
operation of the NAND flash memory.

Cc: Sergio Prado <sergio.prado@e-labworks.com>
Fixes: e9f66ae23c20 ("mtd: s3c2410: make ecc mode configurable via platform data")
Signed-off-by: Sylwester Nawrocki <snawrocki@kernel.org>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
arch/arm/mach-s3c24xx/mach-mini2440.c