From: Simon Glass Date: Thu, 1 Jan 2015 23:18:00 +0000 (-0700) Subject: x86: pci: Don't return a vesa mode when there is not video X-Git-Tag: v2015.04-rc1~195^2~29 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=23609c71dc0c4a433b7189308cda25d1b9e70c43;p=u-boot 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 --- diff --git a/drivers/pci/pci_rom.c b/drivers/pci/pci_rom.c index af6a3ae00c..9808bb385e 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