]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[MTD] [NAND] Fix compiler warning in Alauda driver
authorakpm@linux-foundation.org <akpm@linux-foundation.org>
Thu, 11 Oct 2007 07:02:06 +0000 (00:02 -0700)
committerDavid Woodhouse <dwmw2@infradead.org>
Sat, 13 Oct 2007 13:33:27 +0000 (14:33 +0100)
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>
drivers/mtd/nand/alauda.c

index 2c29854b4241f3b346bf5ab86496bf27dded77bb..257937cd99bffb2f4a93ce88607ca11ca3e8c9a1 100644 (file)
@@ -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,