Skip to content

Commit 1f6620f

Browse files
committed
opp: Don't always remove static OPPs in _of_add_opp_table_v1()
The patch missed returning 0 early in case of success and hence the static OPPs got removed by mistake. Fix it. Fixes: 90d46d7 ("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>
1 parent 3650b22 commit 1f6620f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/opp/of.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -944,6 +944,8 @@ static int _of_add_opp_table_v1(struct device *dev, struct opp_table *opp_table)
944944
nr -= 2;
945945
}
946946

947+
return 0;
948+
947949
remove_static_opp:
948950
_opp_remove_all_static(opp_table);
949951

0 commit comments

Comments
 (0)