aboutsummaryrefslogtreecommitdiff
path: root/drivers/core
diff options
context:
space:
mode:
authorTom Rini2018-01-15 19:01:23 -0500
committerTom Rini2018-01-15 19:01:23 -0500
commitfdb6c3232f66bc9c07c30de87928506477ac4e63 (patch)
treec3874d5f8a75daadab700fb0a08e65f0e6d9cb9f /drivers/core
parent8e9801c283c0e5a7ccd5c04f5ba09003d01f1591 (diff)
parent1e2d2597a667e16adfe0a8a9be22e904cee84727 (diff)
Merge git://git.denx.de/u-boot-net
Diffstat (limited to 'drivers/core')
-rw-r--r--drivers/core/read.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/core/read.c b/drivers/core/read.c
index 5d440cee721..f346cc1eb69 100644
--- a/drivers/core/read.c
+++ b/drivers/core/read.c
@@ -103,6 +103,13 @@ int dev_read_phandle_with_args(struct udevice *dev, const char *list_name,
out_args);
}
+int dev_count_phandle_with_args(struct udevice *dev, const char *list_name,
+ const char *cells_name)
+{
+ return ofnode_count_phandle_with_args(dev_ofnode(dev), list_name,
+ cells_name);
+}
+
int dev_read_addr_cells(struct udevice *dev)
{
return ofnode_read_addr_cells(dev_ofnode(dev));