video: vga16fb: Fix logic that checks for the display standard
[linux-block.git] / drivers / video / fbdev / vga16fb.c
index e2757ff1c23d2f90a7180f865b25066e4305131a..8c464409eb99b67313f6555fd198101c1621ba23 100644 (file)
@@ -1332,7 +1332,12 @@ static int vga16fb_probe(struct platform_device *dev)
        printk(KERN_INFO "vga16fb: mapped to 0x%p\n", info->screen_base);
        par = info->par;
 
+#if defined(CONFIG_X86)
+       par->isVGA = screen_info.orig_video_isVGA == VIDEO_TYPE_VGAC;
+#else
+       /* non-x86 architectures treat orig_video_isVGA as a boolean flag */
        par->isVGA = screen_info.orig_video_isVGA;
+#endif
        par->palette_blanked = 0;
        par->vesa_blanked = 0;