mtd: omap2: fixing compilation warning
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Fri Feb 26 11:59:01 EST 2010
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=bdaefc41627b6f2815ef7aa476dfa4ebb3ad499f
Commit: bdaefc41627b6f2815ef7aa476dfa4ebb3ad499f
Parent: f3e69c6584be2db1ccd5292d6a1d7c566d265701
Author: Vimal Singh <vimalsingh at ti.com>
AuthorDate: Tue Jan 5 12:49:24 2010 +0530
Committer: David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Fri Feb 26 16:46:13 2010 +0000
mtd: omap2: fixing compilation warning
Fixing below warning in compilation:
drivers/mtd/nand/omap2.c: In function 'omap_write_buf_dma_pref':
drivers/mtd/nand/omap2.c:508: warning: passing argument 2 of
'omap_nand_dma_transfer' discards qualifiers from pointer target type
Signed-off-by: Vimal Singh <vimalsingh at ti.com>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
drivers/mtd/nand/omap2.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/mtd/nand/omap2.c b/drivers/mtd/nand/omap2.c
index 1bb799f..4eea97c 100644
--- a/drivers/mtd/nand/omap2.c
+++ b/drivers/mtd/nand/omap2.c
@@ -505,7 +505,7 @@ static void omap_write_buf_dma_pref(struct mtd_info *mtd,
omap_write_buf_pref(mtd, buf, len);
else
/* start transfer in DMA mode */
- omap_nand_dma_transfer(mtd, buf, len, 0x1);
+ omap_nand_dma_transfer(mtd, (u_char *) buf, len, 0x1);
}
/**
More information about the linux-mtd-cvs
mailing list