Skip to content

Commit f2edbb6

Browse files
committed
opp: of: drop incorrect lockdep_assert_held()
_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: 5d6d106 ("OPP: Populate required opp tables from "required-opps" property") Cc: v5.0+ <[email protected]> # v5.0+ Reported-by: Niklas Cassel <[email protected]> Signed-off-by: Viresh Kumar <[email protected]>
1 parent 54ecb8f commit f2edbb6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/opp/of.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ static struct dev_pm_opp *_find_opp_of_np(struct opp_table *opp_table,
7777
{
7878
struct dev_pm_opp *opp;
7979

80-
lockdep_assert_held(&opp_table_lock);
81-
8280
mutex_lock(&opp_table->lock);
8381

8482
list_for_each_entry(opp, &opp_table->opp_list, node) {

0 commit comments

Comments
 (0)