From e2247e198820ec002f594eb7064185e283efb0a9 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Thu, 1 Oct 2020 20:53:57 +0200 Subject: [PATCH] Revert "opp: Increase parsed_static_opps in _of_add_opp_table_v1()" This reverts commit 4d8d6f71b60fdc3c9fb76446a2dede6c06851518 which is commit 6544abc520f0fff701e9da382110dc29676c683a upstream. It breaks the API and we don't need it right now in the Android 5.4 tree. Bug: 161946584 Signed-off-by: Greg Kroah-Hartman Change-Id: Ic8052fabce04a5d75dc838cc79a2f38b0409de7a --- drivers/opp/of.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/opp/of.c b/drivers/opp/of.c index 249738e1e0b7..9cd8f0adacae 100644 --- a/drivers/opp/of.c +++ b/drivers/opp/of.c @@ -733,10 +733,6 @@ static int _of_add_opp_table_v1(struct device *dev, struct opp_table *opp_table) return -EINVAL; } - mutex_lock(&opp_table->lock); - opp_table->parsed_static_opps = 1; - mutex_unlock(&opp_table->lock); - val = prop->value; while (nr) { unsigned long freq = be32_to_cpup(val++) * 1000;