projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6dcc815
)
x86: pci: Don't return a vesa mode when there is not video
author
Simon Glass
<sjg@chromium.org>
Thu, 1 Jan 2015 23:18:00 +0000
(16:18 -0700)
committer
Simon 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
patch
|
blob
|
history
diff --git
a/drivers/pci/pci_rom.c
b/drivers/pci/pci_rom.c
index af6a3ae00cfdcfe5364dc57fe4782bfd6bd1b1fa..9808bb385e85d6f9d1bf9474b5d755d18d8d89a4 100644
(file)
--- 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