X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=drivers%2Fopp%2Fof.c;h=2a97c6535c4c6e29ea47b1b2494f53d9c2342c36;hb=9e5f3ffcf1cb34e7c7beb3f79a96f58536730924;hp=67f2e0710e79c434f34b60f7b62f5b5f54f8efb2;hpb=9dfa859da0f5fe9dae4d2fca76c5c0272e43c702;p=linux-2.6-microblaze.git diff --git a/drivers/opp/of.c b/drivers/opp/of.c index 67f2e0710e79..2a97c6535c4c 100644 --- a/drivers/opp/of.c +++ b/drivers/opp/of.c @@ -95,15 +95,7 @@ static struct dev_pm_opp *_find_opp_of_np(struct opp_table *opp_table, static struct device_node *of_parse_required_opp(struct device_node *np, int index) { - struct device_node *required_np; - - required_np = of_parse_phandle(np, "required-opps", index); - if (unlikely(!required_np)) { - pr_err("%s: Unable to parse required-opps: %pOF, index: %d\n", - __func__, np, index); - } - - return required_np; + return of_parse_phandle(np, "required-opps", index); } /* The caller must call dev_pm_opp_put_opp_table() after the table is used */ @@ -1328,7 +1320,7 @@ int of_get_required_opp_performance_state(struct device_node *np, int index) required_np = of_parse_required_opp(np, index); if (!required_np) - return -EINVAL; + return -ENODEV; opp_table = _find_table_of_opp_np(required_np); if (IS_ERR(opp_table)) {