[MTD] fix mtdconcat for subpage-write NAND
authorChris Paulson-Ellis <chris@edesix.com>
Fri, 12 Oct 2007 09:54:06 +0000 (10:54 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Sun, 14 Oct 2007 12:38:02 +0000 (13:38 +0100)
This allows the mtdconcat driver to work with NAND flash devices that
support sub-page writes.

Signed-off-by: Chris Paulson-Ellis <chris@edesix.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/mtdconcat.c

index 96be7ef62f35f00c75261660a6daf460b3daa184..d563dcd4b2644e2330398909e02f8e8146dbca9a 100644 (file)
@@ -726,6 +726,7 @@ struct mtd_info *mtd_concat_create(struct mtd_info *subdev[],       /* subdevices to c
        concat->mtd.size = subdev[0]->size;
        concat->mtd.erasesize = subdev[0]->erasesize;
        concat->mtd.writesize = subdev[0]->writesize;
+       concat->mtd.subpage_sft = subdev[0]->subpage_sft;
        concat->mtd.oobsize = subdev[0]->oobsize;
        concat->mtd.oobavail = subdev[0]->oobavail;
        if (subdev[0]->writev)