From: Patrice Chotard Date: Wed, 29 Nov 2017 08:06:10 +0000 (+0100) Subject: dm: core: add missing dev_count_phandle_with_args() X-Git-Tag: v2018.03-rc1~175^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ea8cd652a791db47bf7b77a6af2a63fe35954ea2;p=platform%2Fkernel%2Fu-boot.git 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 Reviewed-by: Joe Hershberger --- diff --git a/drivers/core/read.c b/drivers/core/read.c index 5d440ce..f346cc1 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));