blob: 0152489716b0e46a2112a0dbd368950aaefd23a2 [file] [log] [blame]
From 0e58858831a1e730d8040d87a7252a1e880b5788 Mon Sep 17 00:00:00 2001
From: Viresh Kumar <>
Date: Thu, 10 Oct 2019 15:55:33 +0530
Subject: [PATCH] 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
Fixes: 5d6d106fa455 ("OPP: Populate required opp tables from "required-opps" property")
Cc: v5.0+ <> # v5.0+
Reported-by: Niklas Cassel <>
Signed-off-by: Viresh Kumar <>
Signed-off-by: Paul Gortmaker <>
diff --git a/drivers/opp/of.c b/drivers/opp/of.c
index b7d81c408242..b7d61cc63d62 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);
list_for_each_entry(opp, &opp_table->opp_list, node) {