diff options
-rw-r--r-- | drivers/of/base.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/base.c b/drivers/of/base.c index ddba57799fd7..85757952f12d 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c | |||
@@ -902,7 +902,7 @@ int of_parse_phandle_with_args(struct device_node *np, const char *list_name, | |||
902 | /* Retrieve the phandle list property */ | 902 | /* Retrieve the phandle list property */ |
903 | list = of_get_property(np, list_name, &size); | 903 | list = of_get_property(np, list_name, &size); |
904 | if (!list) | 904 | if (!list) |
905 | return -EINVAL; | 905 | return -ENOENT; |
906 | list_end = list + size / sizeof(*list); | 906 | list_end = list + size / sizeof(*list); |
907 | 907 | ||
908 | /* Loop over the phandles until all the requested entry is found */ | 908 | /* Loop over the phandles until all the requested entry is found */ |