From: Gerd Hoffmann Date: Thu, 25 Jun 2020 09:17:09 +0000 (+0200) Subject: vga: fix cirrus bios X-Git-Tag: rel-1.14.0~6 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=d11c75185276ded944f2ea0277532b7fee849bbc;p=seabios.git vga: fix cirrus bios Little mistake, big effect. The patch adding the ati driver broke cirrus due to a missing "else", which effectively downgrades cirrus to standard vga. Fixes: 34b6ecc16074 ("vga: add atiext driver") Signed-off-by: Gerd Hoffmann --- diff --git a/vgasrc/vgahw.h b/vgasrc/vgahw.h index c774f4f..8b64660 100644 --- a/vgasrc/vgahw.h +++ b/vgasrc/vgahw.h @@ -36,7 +36,7 @@ static inline int vgahw_set_mode(struct vgamode_s *vmode_g, int flags) { static inline void vgahw_list_modes(u16 seg, u16 *dest, u16 *last) { if (CONFIG_VGA_CIRRUS) clext_list_modes(seg, dest, last); - if (CONFIG_VGA_ATI) + else if (CONFIG_VGA_ATI) ati_list_modes(seg, dest, last); else if (CONFIG_VGA_BOCHS) bochsvga_list_modes(seg, dest, last);