]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
opp: Don't print an error if required-opps is missing
authorRajendra Nayak <rnayak@codeaurora.org>
Thu, 12 Aug 2021 11:27:20 +0000 (16:57 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 18 Sep 2021 11:42:12 +0000 (13:42 +0200)
commit86230f493bd497b2686f1a07b0a42049feded4ee
tree193944217ac8c1312603ed5a70bf416c2623cb09
parent3f2afd377217dc81d73e5ffc05ad69e81d7630a8
opp: Don't print an error if required-opps is missing

[ Upstream commit 020d86fc0df8b865f6dc168d88a7c2dccabd0a9e ]

The 'required-opps' property is considered optional, hence remove
the pr_err() in of_parse_required_opp() when we find the property is
missing.
While at it, also fix the return value of
of_get_required_opp_performance_state() when of_parse_required_opp()
fails, return a -ENODEV instead of the -EINVAL.

Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/opp/of.c