mtd: atmel_nand: retrieve ecc_mode from pdata
By retrieving the ecc_mode from pdata we can use the same code for device tree and
non device tree probing. Which was not possible before, because ecc_mode was arbitrarily set to
NAND_ECC_SOFT.

Signed-off-by: Raphaël Poggi <poggi.raph@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent af8e7d3 commit 54bccadddd52cb4cbbecd1403b9091fe651bd0fd
@Raphaël Poggi Raphaël Poggi authored on 1 Sep 2014
Sascha Hauer committed on 2 Sep 2014
Showing 6 changed files
View
arch/arm/boards/at91sam9260ek/init.c
View
arch/arm/boards/at91sam9261ek/init.c
View
arch/arm/boards/at91sam9263ek/init.c
View
arch/arm/boards/at91sam9m10g45ek/init.c
View
arch/arm/boards/at91sam9m10ihd/init.c
View
drivers/mtd/nand/atmel_nand.c