mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
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>
This commit is contained in:
parent
6dcc815984
commit
23609c71dc
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue