From: David Woodhouse Date: Wed, 17 May 2006 20:53:58 +0000 (+0100) Subject: [MTD] Fix mtdconcat build. We didn't introduce mtd->writesize yet. X-Git-Tag: v2.6.18-rc1~1105^2~84 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=fd0e5187458041c82fea616575104698397d68d3;p=linux-2.6-omap-h63xx.git [MTD] Fix mtdconcat build. We didn't introduce mtd->writesize yet. Signed-off-by: David Woodhouse --- diff --git a/drivers/mtd/mtdconcat.c b/drivers/mtd/mtdconcat.c index da4c9c190bb..b7de90845c2 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, 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 */