summaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorakpm@linux-foundation.org <akpm@linux-foundation.org>2007-10-11 09:02:06 +0200
committerDavid Woodhouse <dwmw2@infradead.org>2007-10-13 15:33:27 +0200
commitf96880d1e859e3937eb691da8293700b8eec17b3 (patch)
tree94908a8d308189a1a40a0369ea3b4eb916064f82 /drivers/mtd
parent[JFFS2] Remove stray debugging printk (diff)
downloadlinux-f96880d1e859e3937eb691da8293700b8eec17b3.tar.xz
linux-f96880d1e859e3937eb691da8293700b8eec17b3.zip
[MTD] [NAND] Fix compiler warning in Alauda driver
drivers/mtd/nand/alauda.c: In function 'alauda_bounce_read': drivers/mtd/nand/alauda.c:412: warning: comparison of distinct pointer types lacks a cast Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/nand/alauda.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/alauda.c b/drivers/mtd/nand/alauda.c
index 2c29854b4241..257937cd99bf 100644
--- a/drivers/mtd/nand/alauda.c
+++ b/drivers/mtd/nand/alauda.c
@@ -408,7 +408,7 @@ static int alauda_bounce_read(struct mtd_info *mtd, loff_t from, size_t len,
*retlen = len;
while (len) {
u8 oob[16];
- u32 byte = from & al->bytemask;
+ size_t byte = from & al->bytemask;
size_t cplen = min(len, mtd->writesize - byte);
err = alauda_read_page(mtd, from, bounce_buf, oob,