|
@@ -1100,9 +1100,8 @@ int gpio_get_list_count(struct udevice *dev, const char *list_name)
|
|
|
{
|
|
|
int ret;
|
|
|
|
|
|
- ret = fdtdec_parse_phandle_with_args(gd->fdt_blob, dev_of_offset(dev),
|
|
|
- list_name, "#gpio-cells", 0, -1,
|
|
|
- NULL);
|
|
|
+ ret = dev_read_phandle_with_args(dev, list_name, "#gpio-cells", 0, -1,
|
|
|
+ NULL);
|
|
|
if (ret) {
|
|
|
debug("%s: Node '%s', property '%s', GPIO count failed: %d\n",
|
|
|
__func__, dev->name, list_name, ret);
|