mirror of
https://xff.cz/git/u-boot/
synced 2025-10-03 08:21:30 +02:00
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 <robdclark@gmail.com> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
committed by
Alexander Graf
parent
796a78cbe5
commit
3d9880784e
@@ -137,7 +137,7 @@ int efi_gop_register(void)
|
|||||||
struct udevice *vdev;
|
struct udevice *vdev;
|
||||||
|
|
||||||
/* We only support a single video output device for now */
|
/* 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;
|
return -1;
|
||||||
|
|
||||||
struct video_priv *priv = dev_get_uclass_priv(vdev);
|
struct video_priv *priv = dev_get_uclass_priv(vdev);
|
||||||
|
Reference in New Issue
Block a user