]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
avr32: Fix cast warning in board.c
authorSimon Glass <sjg@chromium.org>
Tue, 5 Mar 2013 14:40:01 +0000 (14:40 +0000)
committerTom Rini <trini@ti.com>
Fri, 15 Mar 2013 20:14:01 +0000 (16:14 -0400)
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>
arch/avr32/lib/board.c

index 5a3f752213b79469a7198d6f012ab2ee2f78e74a..57e07dfb89b7fd63d19efe386fad4694182cdc75 100644 (file)
@@ -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 */