diff options
author | David Woodhouse <dwmw2@infradead.org> | 2006-05-17 16:53:58 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2006-05-17 16:53:58 -0400 |
commit | fd0e5187458041c82fea616575104698397d68d3 (patch) | |
tree | 9ca58b78007cf1f917d83e1e0291f34893c3de69 /drivers/mtd/mtdconcat.c | |
parent | e8d32937d9f2022c31871ef357a4883f78da1b7f (diff) |
[MTD] Fix mtdconcat build. We didn't introduce mtd->writesize yet.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'drivers/mtd/mtdconcat.c')
-rw-r--r-- | 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 da4c9c190bb3..b7de90845c2d 100644 --- a/drivers/mtd/mtdconcat.c +++ b/drivers/mtd/mtdconcat.c | |||
@@ -276,8 +276,8 @@ concat_writev_ecc(struct mtd_info *mtd, const struct kvec *vecs, | |||
276 | return -EINVAL; | 276 | return -EINVAL; |
277 | 277 | ||
278 | /* Check alignment */ | 278 | /* Check alignment */ |
279 | if (mtd->writesize > 1) | 279 | if (mtd->oobblock > 1) |
280 | if ((to % mtd->writesize) || (total_len % mtd->writesize)) | 280 | if ((to % mtd->oobblock) || (total_len % mtd->oobblock)) |
281 | return -EINVAL; | 281 | return -EINVAL; |
282 | 282 | ||
283 | /* make a copy of vecs */ | 283 | /* make a copy of vecs */ |