summaryrefslogtreecommitdiff
path: root/drivers/core/util.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2024-07-31 07:20:32 -0600
committerTom Rini <trini@konsulko.com>2024-07-31 07:20:32 -0600
commit4793b683b3ae4aaad9785c36e1d9cc71613a4253 (patch)
treefd6bf04ca23dc979e4ec580d569c95f77dd68b01 /drivers/core/util.c
parent8877bc51a8a4d921ba2f163208b8b1a57ba47c18 (diff)
parent939afc80b6b5de23d70789f3cb3a391dd31319b1 (diff)
Merge tag 'efi-2024-10-rc2' of https://source.denx.de/u-boot/custodians/u-boot-efi
Pull request efi-2024-10-rc2 Documentation: * Add a description for bootmeth_android UEFI: * Provide and use function list_count_nodes() * Require EFI boot manager for EBBR compliance * Correct check in efi_load_option_dp_join() * Adjust config options for capsule updates SMBIOS: * Add extended Extended BIOS ROM Size
Diffstat (limited to 'drivers/core/util.c')
-rw-r--r--drivers/core/util.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/drivers/core/util.c b/drivers/core/util.c
index 108a3bc4dac..fa893485a09 100644
--- a/drivers/core/util.c
+++ b/drivers/core/util.c
@@ -3,23 +3,13 @@
* Copyright (c) 2013 Google, Inc
*/
+#include <vsprintf.h>
#include <dm/device.h>
#include <dm/ofnode.h>
#include <dm/read.h>
#include <dm/util.h>
#include <linux/libfdt.h>
-#include <vsprintf.h>
-
-int list_count_items(struct list_head *head)
-{
- struct list_head *node;
- int count = 0;
-
- list_for_each(node, head)
- count++;
-
- return count;
-}
+#include <linux/list.h>
#if CONFIG_IS_ENABLED(OF_REAL)
int pci_get_devfn(struct udevice *dev)