aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/s3c2410.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/nand/s3c2410.c')
-rw-r--r--drivers/mtd/nand/s3c2410.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/mtd/nand/s3c2410.c b/drivers/mtd/nand/s3c2410.c
index 215227d1a65c..8429793a6288 100644
--- a/drivers/mtd/nand/s3c2410.c
+++ b/drivers/mtd/nand/s3c2410.c
@@ -76,8 +76,7 @@ static int hardware_ecc = 0;
76/* new oob placement block for use with hardware ecc generation 76/* new oob placement block for use with hardware ecc generation
77 */ 77 */
78 78
79static struct nand_oobinfo nand_hw_eccoob = { 79static struct nand_ecclayout nand_hw_eccoob = {
80 .useecc = MTD_NANDECC_AUTOPLACE,
81 .eccbytes = 3, 80 .eccbytes = 3,
82 .eccpos = {0, 1, 2}, 81 .eccpos = {0, 1, 2},
83 .oobfree = {{8, 8}} 82 .oobfree = {{8, 8}}
@@ -502,7 +501,7 @@ static void s3c2410_nand_init_chip(struct s3c2410_nand_info *info,
502 chip->ecc.mode = NAND_ECC_HW; 501 chip->ecc.mode = NAND_ECC_HW;
503 chip->ecc.size = 512; 502 chip->ecc.size = 512;
504 chip->ecc.bytes = 3; 503 chip->ecc.bytes = 3;
505 chip->autooob = &nand_hw_eccoob; 504 chip->ecc.layout = &nand_hw_eccoob;
506 505
507 if (info->is_s3c2440) { 506 if (info->is_s3c2440) {
508 chip->ecc.hwctl = s3c2440_nand_enable_hwecc; 507 chip->ecc.hwctl = s3c2440_nand_enable_hwecc;