public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] omap2/3: mtd: fix compile warning
@ 2009-12-29 10:34 Sanjeev Premi
  2010-01-10  8:48 ` Artem Bityutskiy
  0 siblings, 1 reply; 2+ messages in thread
From: Sanjeev Premi @ 2009-12-29 10:34 UTC (permalink / raw)
  To: linux-mtd, linux-omap; +Cc: Sanjeev Premi

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);
 }
 
 /**
-- 
1.6.2.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] omap2/3: mtd: fix compile warning
  2009-12-29 10:34 [PATCH] omap2/3: mtd: fix compile warning Sanjeev Premi
@ 2010-01-10  8:48 ` Artem Bityutskiy
  0 siblings, 0 replies; 2+ messages in thread
From: Artem Bityutskiy @ 2010-01-10  8:48 UTC (permalink / raw)
  To: Sanjeev Premi; +Cc: linux-mtd, linux-omap

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.

-- 
Best Regards,
Artem Bityutskiy (Артём Битюцкий)

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-01-10  8:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-29 10:34 [PATCH] omap2/3: mtd: fix compile warning Sanjeev Premi
2010-01-10  8:48 ` Artem Bityutskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox