[MTD] Fix mtdconcat build. We didn't introduce mtd->writesize yet.
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Wed May 17 16:59:01 EDT 2006
Commit: fd0e5187458041c82fea616575104698397d68d3
Parent: e8d32937d9f2022c31871ef357a4883f78da1b7f
Author: David Woodhouse <dwmw2 at infradead.org>
AuthorDate: Wed May 17 21:53:58 2006 +0100
Commit: David Woodhouse <dwmw2 at infradead.org>
CommitDate: Wed May 17 21:53:58 2006 +0100
[MTD] Fix mtdconcat build. We didn't introduce mtd->writesize yet.
Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
drivers/mtd/mtdconcat.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/mtdconcat.c b/drivers/mtd/mtdconcat.c
index da4c9c1..b7de908 100644
--- a/drivers/mtd/mtdconcat.c
+++ b/drivers/mtd/mtdconcat.c
@@ -276,8 +276,8 @@ concat_writev_ecc(struct mtd_info *mtd,
return -EINVAL;
/* Check alignment */
- if (mtd->writesize > 1)
- if ((to % mtd->writesize) || (total_len % mtd->writesize))
+ if (mtd->oobblock > 1)
+ if ((to % mtd->oobblock) || (total_len % mtd->oobblock))
return -EINVAL;
/* make a copy of vecs */
More information about the linux-mtd-cvs
mailing list