From: Simon Glass Date: Tue, 5 Mar 2013 14:40:01 +0000 (+0000) Subject: avr32: Fix cast warning in board.c X-Git-Tag: v2013.04-rc2~29 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=81e2ff0bf13506c16cc8bbf449f6623ea8c5d84a;p=u-boot 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 Acked-by: Andreas Bießmann --- diff --git a/arch/avr32/lib/board.c b/arch/avr32/lib/board.c index 5a3f752213..57e07dfb89 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 */