diff options
author | Patrice Chotard <patrice.chotard@st.com> | 2017-11-29 11:06:10 +0300 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2018-01-15 21:05:19 +0300 |
commit | ea8cd652a791db47bf7b77a6af2a63fe35954ea2 (patch) | |
tree | ec3d565fbdb19675330397814874247fdf425ef2 /drivers/core | |
parent | 32ac8b0bba72684281a079a8e23832efabd97e09 (diff) | |
download | u-boot-ea8cd652a791db47bf7b77a6af2a63fe35954ea2.tar.xz |
dm: core: add missing dev_count_phandle_with_args()
Add missing dev_count_phandle_with_args() to avoid
compilation issue.
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'drivers/core')
-rw-r--r-- | drivers/core/read.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/core/read.c b/drivers/core/read.c index 5d440cee72..f346cc1eb6 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)); |