diff --git a/drivers/of/base.c b/drivers/of/base.c index ddba57799fd7c9763c60e384d3b5dcc7148d202d..85757952f12dc05970b2b6a690ec07ca17738c3f 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, /* Retrieve the phandle list property */ list = of_get_property(np, list_name, &size); if (!list) - return -EINVAL; + return -ENOENT; list_end = list + size / sizeof(*list); /* Loop over the phandles until all the requested entry is found */