[MTD] NAND Replace oobinfo by ecclayout
[deliverable/linux.git] / drivers / mtd / nand / s3c2410.c
index 215227d1a65cfc62e21cf361974fda33be6280e6..8429793a628828af72821f1315bbe28441e3c1f3 100644 (file)
@@ -76,8 +76,7 @@ static int hardware_ecc = 0;
 /* new oob placement block for use with hardware ecc generation
  */
 
-static struct nand_oobinfo nand_hw_eccoob = {
-       .useecc = MTD_NANDECC_AUTOPLACE,
+static struct nand_ecclayout nand_hw_eccoob = {
        .eccbytes = 3,
        .eccpos = {0, 1, 2},
        .oobfree = {{8, 8}}
@@ -502,7 +501,7 @@ static void s3c2410_nand_init_chip(struct s3c2410_nand_info *info,
                chip->ecc.mode      = NAND_ECC_HW;
                chip->ecc.size      = 512;
                chip->ecc.bytes     = 3;
-               chip->autooob       = &nand_hw_eccoob;
+               chip->ecc.layout    = &nand_hw_eccoob;
 
                if (info->is_s3c2440) {
                        chip->ecc.hwctl     = s3c2440_nand_enable_hwecc;
This page took 0.025253 seconds and 5 git commands to generate.