avr32: fix compile warning
PATCH 1/1 avr32: fix compile warning
From: Andreas Bie?mann <[email protected]>
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 <[email protected]>
Cc Simon Glass <[email protected]>
Cc Mark Jackson <[email protected]>
--- arch/avr32/lib/board.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/avr32/lib/board.c +2 -2
@@ -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 */
Signature · 1 line
1.7.10.4
PATCH 1/1 avr32: fix compile warning
Quoted 9 lines · Andreas Bie?mann
From: Andreas Bie?mann <[email protected]>
Commit
47a9789f25ce2bbc9860b3e11a09ecd79e4d9d46introduced an compiler warning inarch/avr32/lib/board.cwhen setting the framebuffer address. This patch fixes this warning.Signed-off-by Andreas Bie?mann <[email protected]>Cc Simon Glass <[email protected]>Cc Mark Jackson <[email protected]>
Acked-by Simon Glass <[email protected]>
Quoted 25 lines
--- arch/avr32/lib/board.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)arch/avr32/lib/board.c +2
-3@@ -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