summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2013-03-05 14:40:01 +0000
committerTom Rini <trini@ti.com>2013-03-15 16:14:01 -0400
commit81e2ff0bf13506c16cc8bbf449f6623ea8c5d84a (patch)
tree7a203e17e92692b9ded416351cc9fb0ad5f492b0 /arch
parent9e97834867f496fde45d921a1d3fe213a6e8c7cd (diff)
avr32: Fix cast warning in board.c
The frame buffer pointer in global_data is not a pointer, so we should remove these casts. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Andreas Bießmann <andreas.devel@googlemail.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/avr32/lib/board.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/avr32/lib/board.c b/arch/avr32/lib/board.c
index 5a3f752213b..57e07dfb89b 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 */