Patchwork omap2/3: mtd: fix compile warning

login
register
mail settings
Submitter Sanjeev Premi
Date Dec. 29, 2009, 10:34 a.m.
Message ID <1262082892-5260-1-git-send-email-premi@ti.com>
Download mbox | patch
Permalink /patch/41881/
State New
Headers show

Comments

Sanjeev Premi - Dec. 29, 2009, 10:34 a.m.
This patch fixes following compile warning:

drivers/mtd/nand/omap2.c:508: warning: passing argumen
t 2 of 'omap_nand_dma_transfer' discards qualifiers fr
om pointer target type

Signed-off-by: Sanjeev Premi <premi@ti.com>
---
 drivers/mtd/nand/omap2.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Artem Bityutskiy - Jan. 10, 2010, 8:48 a.m.
On Tue, 2009-12-29 at 16:04 +0530, Sanjeev Premi wrote:
> This patch fixes following compile warning:
> 
> drivers/mtd/nand/omap2.c:508: warning: passing argumen
> t 2 of 'omap_nand_dma_transfer' discards qualifiers fr
> om pointer target type
> 
> Signed-off-by: Sanjeev Premi <premi@ti.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..08c193c 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, (void *)buf, len, 0x1);
>  }

Pushed this patch to my l2-mtd-2.6/dunno tree.

Patch

diff --git a/drivers/mtd/nand/omap2.c b/drivers/mtd/nand/omap2.c
index 1bb799f..08c193c 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, (void *)buf, len, 0x1);
 }
 
 /**