]> git.sur5r.net Git - u-boot/blobdiff - lib/efi_loader/efi_gop.c
efi_loader: fill simple network protocol revision
[u-boot] / lib / efi_loader / efi_gop.c
index e063e0c79b7e2f9f767eb47e44e8d5d867447c79..411a8c9226154d922ddcc948c96f1ab7660f7c23 100644 (file)
@@ -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);