diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2019-10-10 15:55:33 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-10-29 09:22:46 +0100 |
commit | 99f8ef99333f734f242b8dc0de44a474ac6a8b52 (patch) | |
tree | baa5dcef8dae16e598bc52fafc6a46cd35bc5897 | |
parent | e00907058806754b5b6548b57f3bd5f32bfdb34c (diff) | |
download | linux-stable-99f8ef99333f734f242b8dc0de44a474ac6a8b52.tar.gz linux-stable-99f8ef99333f734f242b8dc0de44a474ac6a8b52.tar.bz2 linux-stable-99f8ef99333f734f242b8dc0de44a474ac6a8b52.zip |
opp: of: drop incorrect lockdep_assert_held()
commit f2edbb6699b0bc6e4f789846b99007200546c6c2 upstream.
_find_opp_of_np() doesn't traverse the list of OPP tables but instead
just the entries within an OPP table and so only requires to lock the
OPP table itself.
The lockdep_assert_held() was added there by mistake and isn't really
required.
Fixes: 5d6d106fa455 ("OPP: Populate required opp tables from "required-opps" property")
Cc: v5.0+ <stable@vger.kernel.org> # v5.0+
Reported-by: Niklas Cassel <niklas.cassel@linaro.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/opp/of.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/opp/of.c b/drivers/opp/of.c index b313aca9894f..4c7feb3ac4cd 100644 --- a/drivers/opp/of.c +++ b/drivers/opp/of.c @@ -77,8 +77,6 @@ static struct dev_pm_opp *_find_opp_of_np(struct opp_table *opp_table, { struct dev_pm_opp *opp; - lockdep_assert_held(&opp_table_lock); - mutex_lock(&opp_table->lock); list_for_each_entry(opp, &opp_table->opp_list, node) { |