summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/mtdpart.c
diff options
context:
space:
mode:
authorHuang Shijie <b32955@freescale.com>2013-08-16 10:10:06 +0800
committerDavid Woodhouse <David.Woodhouse@intel.com>2013-08-30 21:38:02 +0100
commitbdf69c47ac67480122b8842acf0ea75c0d18a5e9 (patch)
treeb654f9cb8b80a515823cb36867cb0e4697b9fc29 /drivers/mtd/mtdpart.c
parentbf977e3f158dc949fd6e1e4195f80d42232cb5fa (diff)
downloadop-kernel-dev-bdf69c47ac67480122b8842acf0ea75c0d18a5e9.zip
op-kernel-dev-bdf69c47ac67480122b8842acf0ea75c0d18a5e9.tar.gz
mtd: set the ecc step size for master/slave mtd_info
Set the ecc step size for master/slave mtd_info{}. Signed-off-by: Huang Shijie <b32955@freescale.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/mtdpart.c')
-rw-r--r--drivers/mtd/mtdpart.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/mtdpart.c b/drivers/mtd/mtdpart.c
index 3014933..6e732c3 100644
--- a/drivers/mtd/mtdpart.c
+++ b/drivers/mtd/mtdpart.c
@@ -516,6 +516,7 @@ static struct mtd_part *allocate_partition(struct mtd_info *master,
}
slave->mtd.ecclayout = master->ecclayout;
+ slave->mtd.ecc_step_size = master->ecc_step_size;
slave->mtd.ecc_strength = master->ecc_strength;
slave->mtd.bitflip_threshold = master->bitflip_threshold;
OpenPOWER on IntegriCloud