forked from Minki/linux
[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>
This commit is contained in:
parent
599fb3298b
commit
ae282d497d
@ -400,6 +400,7 @@ int add_mtd_partitions(struct mtd_info *master,
|
|||||||
slave->mtd.size = parts[i].size;
|
slave->mtd.size = parts[i].size;
|
||||||
slave->mtd.oobblock = master->oobblock;
|
slave->mtd.oobblock = master->oobblock;
|
||||||
slave->mtd.oobsize = master->oobsize;
|
slave->mtd.oobsize = master->oobsize;
|
||||||
|
slave->mtd.oobavail = master->oobavail;
|
||||||
slave->mtd.ecctype = master->ecctype;
|
slave->mtd.ecctype = master->ecctype;
|
||||||
slave->mtd.eccsize = master->eccsize;
|
slave->mtd.eccsize = master->eccsize;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user