From: Rob Clark Date: Fri, 4 Aug 2017 11:52:03 +0000 (-0400) Subject: efi_loader: GOP fix for no display X-Git-Tag: v2025.01-rc5-pxa1908~6004^2~3 X-Git-Url: http://git.dujemihanovic.xyz/img/sics.gif?a=commitdiff_plain;h=3d9880784ed5cd503b0d69128ea1841102ff522e;p=u-boot.git efi_loader: GOP fix for no display uclass_first_device() returns 0 if there is no device, but error if there is a device that failed to probe. Signed-off-by: Rob Clark Signed-off-by: Alexander Graf --- diff --git a/lib/efi_loader/efi_gop.c b/lib/efi_loader/efi_gop.c index e063e0c79b..411a8c9226 100644 --- a/lib/efi_loader/efi_gop.c +++ b/lib/efi_loader/efi_gop.c @@ -137,7 +137,7 @@ int efi_gop_register(void) struct udevice *vdev; /* We only support a single video output device for now */ - if (uclass_first_device(UCLASS_VIDEO, &vdev)) + if (uclass_first_device(UCLASS_VIDEO, &vdev) || !vdev) return -1; struct video_priv *priv = dev_get_uclass_priv(vdev);