Skip to content
Snippets Groups Projects
Commit 3d988078 authored by Rob Clark's avatar Rob Clark Committed by Alexander Graf
Browse files

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: default avatarRob Clark <robdclark@gmail.com>
Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
parent 796a78cb
Branches
Tags
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment