From: Vitaly Wool Date: Wed, 17 May 2006 11:34:27 +0000 (+0100) Subject: [MTD] generic: propagate oobavail to MTD partitions X-Git-Tag: v2.6.18-rc1~1105^2~89 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=ae282d497d5631ce31539717131c760e3872c539;p=linux-2.6-omap-h63xx.git [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 Signed-off-by: David Woodhouse --- diff --git a/drivers/mtd/mtdpart.c b/drivers/mtd/mtdpart.c index 99395911d26..29ed5abe70c 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;