[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200716025452.25761-1-walter.lozano@collabora.com>
Date: Wed, 15 Jul 2020 23:54:52 -0300
From: Walter Lozano <walter.lozano@...labora.com>
To: linux-pm@...r.kernel.org
Cc: kernel@...labora.com, Walter Lozano <walter.lozano@...labora.com>,
Nishanth Menon <nm@...com>, Stephen Boyd <sboyd@...nel.org>,
Viresh Kumar <vireshk@...nel.org>, linux-kernel@...r.kernel.org
Subject: [PATCH] opp: Increase parsed_static_opps on _of_add_opp_table_v1
Currently, when using _of_add_opp_table_v2 parsed_static_opps is
increased and this value is used on _opp_remove_all_static to
check if there are static opps entries that need to be freed.
Unfortunately this does not happens when using _of_add_opp_table_v1,
which leads to warnings.
This patch increases parsed_static_opps on _of_add_opp_table_v1 in a
similar way as in _of_add_opp_table_v2.
Signed-off-by: Walter Lozano <walter.lozano@...labora.com>
---
drivers/opp/of.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/opp/of.c b/drivers/opp/of.c
index 9a5873591a40..b2bc82bf8b42 100644
--- a/drivers/opp/of.c
+++ b/drivers/opp/of.c
@@ -917,6 +917,8 @@ static int _of_add_opp_table_v1(struct device *dev, struct opp_table *opp_table)
nr -= 2;
}
+ opp_table->parsed_static_opps++;
+
return ret;
}
--
2.20.1
Powered by blists - more mailing lists