core: add dev_count_phandle_with_args for of_live

This is a fix to:
642346a dm: core: add ofnode_count_phandle_with_args()

Change-Id: I25befa448e44884440060d43be905744cd4cd319
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
This commit is contained in:
Kever Yang 2018-01-25 22:51:02 +08:00
parent af586a3812
commit d5b5cd1471
1 changed files with 8 additions and 0 deletions

View File

@ -106,6 +106,14 @@ 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));