Patchwork [U-Boot] avr32: fix compile warning

login
register
mail settings
Submitter Andreas Bießmann
Date Feb. 14, 2013, 10:48 a.m.
Message ID <1360838937-18765-1-git-send-email-andreas.devel@googlemail.com>
Download mbox | patch
Permalink /patch/220413/
State Superseded
Delegated to: Andreas Bießmann
Headers show

Comments

Andreas Bießmann - Feb. 14, 2013, 10:48 a.m.
From: Andreas Bießmann <andreas.biessmann@corscience.de>

Commit 47a9789f25ce2bbc9860b3e11a09ecd79e4d9d46 introduced an compiler warning
in arch/avr32/lib/board.c when setting the framebuffer address. This patch fixes
this warning.

Signed-off-by: Andreas Bießmann <andreas.biessmann@corscience.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Mark Jackson <mpfj@mimc.co.uk>
---
 arch/avr32/lib/board.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Simon Glass - Feb. 14, 2013, 2:26 p.m.
On Thu, Feb 14, 2013 at 2:48 AM, Andreas Bießmann
<andreas.devel@googlemail.com> wrote:
> From: Andreas Bießmann <andreas.biessmann@corscience.de>
>
> Commit 47a9789f25ce2bbc9860b3e11a09ecd79e4d9d46 introduced an compiler warning
> in arch/avr32/lib/board.c when setting the framebuffer address. This patch fixes
> this warning.
>
> Signed-off-by: Andreas Bießmann <andreas.biessmann@corscience.de>
> Cc: Simon Glass <sjg@chromium.org>
> Cc: Mark Jackson <mpfj@mimc.co.uk>

Acked-by: Simon Glass <sjg@chromium.org>

> ---
>  arch/avr32/lib/board.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/avr32/lib/board.c b/arch/avr32/lib/board.c
> index d3c8cb7..c12e8ba 100644
> --- a/arch/avr32/lib/board.c
> +++ b/arch/avr32/lib/board.c
> @@ -211,11 +211,11 @@ void board_init_f(ulong board_type)
>  #ifdef CONFIG_FB_ADDR
>         printf("LCD: Frame buffer allocated at preset 0x%08x\n",
>                CONFIG_FB_ADDR);
> -       gd->fb_base = (void *)CONFIG_FB_ADDR;
> +       gd->fb_base = CONFIG_FB_ADDR;
>  #else
>         addr = lcd_setmem(addr);
>         printf("LCD: Frame buffer allocated at 0x%08lx\n", addr);
> -       gd->fb_base = (void *)addr;
> +       gd->fb_base = addr;
>  #endif /* CONFIG_FB_ADDR */
>  #endif /* CONFIG_LCD */
>
> --
> 1.7.10.4
>

Patch

diff --git a/arch/avr32/lib/board.c b/arch/avr32/lib/board.c
index d3c8cb7..c12e8ba 100644
--- a/arch/avr32/lib/board.c
+++ b/arch/avr32/lib/board.c
@@ -211,11 +211,11 @@  void board_init_f(ulong board_type)
 #ifdef CONFIG_FB_ADDR
 	printf("LCD: Frame buffer allocated at preset 0x%08x\n",
 	       CONFIG_FB_ADDR);
-	gd->fb_base = (void *)CONFIG_FB_ADDR;
+	gd->fb_base = CONFIG_FB_ADDR;
 #else
 	addr = lcd_setmem(addr);
 	printf("LCD: Frame buffer allocated at 0x%08lx\n", addr);
-	gd->fb_base = (void *)addr;
+	gd->fb_base = addr;
 #endif /* CONFIG_FB_ADDR */
 #endif /* CONFIG_LCD */