]> git.sur5r.net Git - u-boot/blobdiff - lib/efi_loader/efi_gop.c
efi_loader: helper function to add EFI object to list
[u-boot] / lib / efi_loader / efi_gop.c
index 7b74d6ef330c2942109ca3246c22050a3d9f045f..3caddd5f8442cf97a96a7301e647a2e6581a8017 100644 (file)
@@ -180,10 +180,9 @@ int efi_gop_register(void)
        }
 
        /* Hook up to the device list */
-       list_add_tail(&gopobj->parent.link, &efi_obj_list);
+       efi_add_handle(&gopobj->parent);
 
        /* Fill in object data */
-       gopobj->parent.handle = &gopobj->ops;
        ret = efi_add_protocol(gopobj->parent.handle, &efi_gop_guid,
                               &gopobj->ops);
        if (ret != EFI_SUCCESS) {