diff options
author | Simon Glass <sjg@chromium.org> | 2015-01-01 16:18:00 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-01-13 07:24:58 -0800 |
commit | 23609c71dc0c4a433b7189308cda25d1b9e70c43 (patch) | |
tree | f912b2cef7508d59abae0b31fcad123feb3d8512 /drivers/pci | |
parent | 6dcc8159849a88610205d5d2e67107a76ac2189d (diff) | |
download | u-boot-imx-23609c71dc0c4a433b7189308cda25d1b9e70c43.zip u-boot-imx-23609c71dc0c4a433b7189308cda25d1b9e70c43.tar.gz u-boot-imx-23609c71dc0c4a433b7189308cda25d1b9e70c43.tar.bz2 |
x86: pci: Don't return a vesa mode when there is not video
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>
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/pci_rom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pci_rom.c b/drivers/pci/pci_rom.c index af6a3ae..9808bb3 100644 --- a/drivers/pci/pci_rom.c +++ b/drivers/pci/pci_rom.c @@ -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 |