Revert "opp: Increase parsed_static_opps in _of_add_opp_table_v1()"

This reverts commit 4d8d6f71b6 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 <gregkh@google.com>
Change-Id: Ic8052fabce04a5d75dc838cc79a2f38b0409de7a
This commit is contained in:
Greg Kroah-Hartman 2020-10-01 20:53:57 +02:00
commit e2247e1988

View file

@ -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;