Skip to contentSkip to conversation

avr32: fix compile warning

PATCH New Andreas Bießmann 2 participants 2 messages Feb 14, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 avr32: fix compile warning

From: Andreas Bie?mann <[email protected]>

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

Cc Simon Glass <[email protected]>
Cc Mark Jackson <[email protected]>
---
 arch/avr32/lib/board.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/avr32/lib/board.c +2 -2
index d3c8cb7..c12e8ba 100644
@@ -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 */
 
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 1/1 avr32: fix compile warning

Quoted 9 lines · Andreas Bie?mann

From: Andreas Bie?mann <[email protected]>

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

Cc Simon Glass <[email protected]>
Cc Mark Jackson <[email protected]>
Quoted 25 lines
---
 arch/avr32/lib/board.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/avr32/lib/board.c +2 -3
index d3c8cb7..c12e8ba 100644
@@ -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