]> git.sur5r.net Git - u-boot/commitdiff
efi_loader: Fix warning in efi_gop
authorAlexander Graf <agraf@suse.de>
Mon, 31 Jul 2017 07:15:57 +0000 (09:15 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 31 Jul 2017 11:28:13 +0000 (07:28 -0400)
Commit ca9193d2b16 ("efi_loader: gop: fixes for CONFIG_DM_VIDEO without
CONFIG_LCD") dropped the explicit (void*) cast for fb_base in efi gop support
for CONFIG_LCD without DM. This patch adds it back, eliminating the now occuring
warning again

Fixes: ca9193d2b16 ("efi_loader: gop: fixes for CONFIG_DM_VIDEO without CONFIG_LCD")
Reported-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
lib/efi_loader/efi_gop.c

index 806cfaeea18178d95a131c94d0ddc37ae2864a9b..e063e0c79b7e2f9f767eb47e44e8d5d867447c79 100644 (file)
@@ -155,7 +155,7 @@ int efi_gop_register(void)
        row = panel_info.vl_row;
        fb_base = gd->fb_base;
        fb_size = lcd_get_size(&line_len);
-       fb = gd->fb_base;
+       fb = (void*)gd->fb_base;
 #endif
 
        switch (bpix) {