summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/mtdpart.c
diff options
context:
space:
mode:
authorVitaly Wool <vwool@ru.mvista.com>2006-05-17 13:34:27 +0200
committerDavid Woodhouse <dwmw2@infradead.org>2006-05-17 13:34:27 +0200
commitae282d497d5631ce31539717131c760e3872c539 (patch)
treea3067a25401d0fa0d8cf409827d4d7031523095f /drivers/mtd/mtdpart.c
parent[PCMCIA MTD] Fix leak and crash on reboot (diff)
downloadlinux-ae282d497d5631ce31539717131c760e3872c539.tar.xz
linux-ae282d497d5631ce31539717131c760e3872c539.zip
[MTD] generic: propagate oobavail to MTD partitions
'oobavail' parameter of mtd_info structure is now propagated to the MTD partitions Signed-off-by: Vitaly Wool <vwool@ru.mvista.com> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
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 99395911d26f..29ed5abe70c4 100644
--- a/drivers/mtd/mtdpart.c
+++ b/drivers/mtd/mtdpart.c
@@ -400,6 +400,7 @@ int add_mtd_partitions(struct mtd_info *master,
slave->mtd.size = parts[i].size;
slave->mtd.oobblock = master->oobblock;
slave->mtd.oobsize = master->oobsize;
+ slave->mtd.oobavail = master->oobavail;
slave->mtd.ecctype = master->ecctype;
slave->mtd.eccsize = master->eccsize;