summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-01-01 23:18:00 (GMT)
committerSimon Glass <sjg@chromium.org>2015-01-13 15:24:58 (GMT)
commit23609c71dc0c4a433b7189308cda25d1b9e70c43 (patch)
treef912b2cef7508d59abae0b31fcad123feb3d8512
parent6dcc8159849a88610205d5d2e67107a76ac2189d (diff)
downloadu-boot-23609c71dc0c4a433b7189308cda25d1b9e70c43.tar.xz
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>
-rw-r--r--drivers/pci/pci_rom.c2
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