diff options
author | Thomas Gleixner <tglx@cruncher.tec.linutronix.de> | 2006-05-27 14:36:12 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@cruncher.tec.linutronix.de> | 2006-05-29 09:06:49 -0400 |
commit | ff268fb8791cf18df536113355d7184007c269d9 (patch) | |
tree | 3a7d9fc72b28f5a0f11a2f8b08174b1bee6ea20d /drivers/mtd/mtdpart.c | |
parent | 8be834f76291fdcc0614cb84926c6910b9f2ecbc (diff) |
[MTD] NAND Consolidate oobinfo handling
The info structure for out of band data was copied into
the mtd structure. Make it a pointer and remove the ability
to set it from userspace. The position of ecc bytes is
defined by the hardware and should not be changed by software.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'drivers/mtd/mtdpart.c')
-rw-r--r-- | drivers/mtd/mtdpart.c | 4 |
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 */ |