aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/mtdpart.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/mtdpart.c')
-rw-r--r--drivers/mtd/mtdpart.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mtd/mtdpart.c b/drivers/mtd/mtdpart.c
index a93550ce7978..b6b218952d49 100644
--- a/drivers/mtd/mtdpart.c
+++ b/drivers/mtd/mtdpart.c
@@ -316,7 +316,6 @@ int add_mtd_partitions(struct mtd_info *master,
316 slave->mtd.size = parts[i].size; 316 slave->mtd.size = parts[i].size;
317 slave->mtd.writesize = master->writesize; 317 slave->mtd.writesize = master->writesize;
318 slave->mtd.oobsize = master->oobsize; 318 slave->mtd.oobsize = master->oobsize;
319 slave->mtd.oobavail = master->oobavail;
320 slave->mtd.ecctype = master->ecctype; 319 slave->mtd.ecctype = master->ecctype;
321 slave->mtd.eccsize = master->eccsize; 320 slave->mtd.eccsize = master->eccsize;
322 321
@@ -435,8 +434,7 @@ int add_mtd_partitions(struct mtd_info *master,
435 parts[i].name); 434 parts[i].name);
436 } 435 }
437 436
438 /* copy oobinfo from master */ 437 slave->mtd.oobinfo = master->oobinfo;
439 memcpy(&slave->mtd.oobinfo, &master->oobinfo, sizeof(slave->mtd.oobinfo));
440 438
441 if(parts[i].mtdp) 439 if(parts[i].mtdp)
442 { /* store the object pointer (caller may or may not register it */ 440 { /* store the object pointer (caller may or may not register it */