|
@@ -902,7 +902,7 @@ int of_parse_phandle_with_args(struct device_node *np, const char *list_name,
|
|
/* Retrieve the phandle list property */
|
|
/* Retrieve the phandle list property */
|
|
list = of_get_property(np, list_name, &size);
|
|
list = of_get_property(np, list_name, &size);
|
|
if (!list)
|
|
if (!list)
|
|
- return -EINVAL;
|
|
|
|
|
|
+ return -ENOENT;
|
|
list_end = list + size / sizeof(*list);
|
|
list_end = list + size / sizeof(*list);
|
|
|
|
|
|
/* Loop over the phandles until all the requested entry is found */
|
|
/* Loop over the phandles until all the requested entry is found */
|