Skip to content
Snippets Groups Projects
Commit 81e2ff0b authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

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: default avatarSimon Glass <sjg@chromium.org>
Acked-by: default avatarAndreas Bießmann <andreas.devel@googlemail.com>
parent 9e978348
No related branches found
No related tags found
No related merge requests found
...@@ -211,11 +211,11 @@ void board_init_f(ulong board_type) ...@@ -211,11 +211,11 @@ void board_init_f(ulong board_type)
#ifdef CONFIG_FB_ADDR #ifdef CONFIG_FB_ADDR
printf("LCD: Frame buffer allocated at preset 0x%08x\n", printf("LCD: Frame buffer allocated at preset 0x%08x\n",
CONFIG_FB_ADDR); CONFIG_FB_ADDR);
gd->fb_base = (void *)CONFIG_FB_ADDR; gd->fb_base = CONFIG_FB_ADDR;
#else #else
addr = lcd_setmem(addr); addr = lcd_setmem(addr);
printf("LCD: Frame buffer allocated at 0x%08lx\n", 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_FB_ADDR */
#endif /* CONFIG_LCD */ #endif /* CONFIG_LCD */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment