]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - lib/efi_loader/efi_net.c
imx: hab: Check if CSF contains deprecated commands
[people/ms/u-boot.git] / lib / efi_loader / efi_net.c
index 74a67c5365d937f8b847809d2f76614494b5a640..8c5d5b492cab03df847ea6a443c3919cbe592a5b 100644 (file)
@@ -296,11 +296,9 @@ int efi_net_register(void)
                goto out_of_memory;
 
        /* Hook net up to the device list */
-       INIT_LIST_HEAD(&netobj->parent.protocols);
-       list_add_tail(&netobj->parent.link, &efi_obj_list);
+       efi_add_handle(&netobj->parent);
 
        /* Fill in object data */
-       netobj->parent.handle = &netobj->net;
        r = efi_add_protocol(netobj->parent.handle, &efi_net_guid,
                             &netobj->net);
        if (r != EFI_SUCCESS)