diff options
| author | Rob Clark <[email protected]> | 2017-08-04 07:52:03 -0400 |
|---|---|---|
| committer | Alexander Graf <[email protected]> | 2017-08-11 13:49:23 +0200 |
| commit | 3d9880784ed5cd503b0d69128ea1841102ff522e (patch) | |
| tree | dff49a07516df7dcd9950464b00adc048530c465 | |
| parent | 796a78cbe5676fc7562b50c7a0191fa56c8c4772 (diff) | |
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 <[email protected]>
Signed-off-by: Alexander Graf <[email protected]>
| -rw-r--r-- | lib/efi_loader/efi_gop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/efi_loader/efi_gop.c b/lib/efi_loader/efi_gop.c index e063e0c79b7..411a8c92261 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); |
