projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3650b22
)
opp: Don't always remove static OPPs in _of_add_opp_table_v1()
author
Viresh Kumar
<viresh.kumar@linaro.org>
Wed, 14 Oct 2020 04:26:28 +0000
(09:56 +0530)
committer
Viresh Kumar
<viresh.kumar@linaro.org>
Tue, 27 Oct 2020 05:08:28 +0000
(10:38 +0530)
The patch missed returning 0 early in case of success and hence the
static OPPs got removed by mistake. Fix it.
Fixes: 90d46d71cce2 ("opp: Handle multiple calls for same OPP table in _of_add_opp_table_v1()")
Reported-by: Aisheng Dong <aisheng.dong@nxp.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Tested-by: Dong Aisheng <aisheng.dong@nxp.com>
drivers/opp/of.c
patch
|
blob
|
history
diff --git
a/drivers/opp/of.c
b/drivers/opp/of.c
index 874b587562202219babd72ce0e7c9236a7c9ee75..9faeb83e4b326217e538d570f29e7e333d5888d5 100644
(file)
--- a/
drivers/opp/of.c
+++ b/
drivers/opp/of.c
@@
-944,6
+944,8
@@
static int _of_add_opp_table_v1(struct device *dev, struct opp_table *opp_table)
nr -= 2;
}
+ return 0;
+
remove_static_opp:
_opp_remove_all_static(opp_table);