]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
x86: pci: Don't return a vesa mode when there is not video
authorSimon Glass <sjg@chromium.org>
Thu, 1 Jan 2015 23:18:00 +0000 (16:18 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 13 Jan 2015 15:24:58 +0000 (07:24 -0800)
If the video has not been set up, we should not return a success code. This
can be detected by seeing if any of the variables are non-zero.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/pci/pci_rom.c

index af6a3ae00cfdcfe5364dc57fe4782bfd6bd1b1fa..9808bb385e85d6f9d1bf9474b5d755d18d8d89a4 100644 (file)
@@ -205,7 +205,7 @@ int vbe_get_video_info(struct graphic_device *gdev)
        gdev->vprBase = vesa->phys_base_ptr;
        gdev->cprBase = vesa->phys_base_ptr;
 
-       return 0;
+       return gdev->winSizeX ? 0 : -ENOSYS;
 #else
        return -ENOSYS;
 #endif