Commit 23609c71 authored by Simon Glass's avatar Simon Glass
Browse files

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: default avatarSimon Glass <>
parent 6dcc8159
......@@ -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;
return -ENOSYS;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment