[U-Boot] [PATCH] avr32: fix compile warning

Andreas Bießmann andreas.devel at googlemail.com
Thu Feb 14 11:48:57 CET 2013


From: Andreas Bießmann <andreas.biessmann at 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 at corscience.de>
Cc: Simon Glass <sjg at chromium.org>
Cc: Mark Jackson <mpfj at mimc.co.uk>
---
 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



More information about the U-Boot mailing list