Skip to content

Commit 3dea931

Browse files
osctobegregkh
authored andcommitted
opp: remove WARN when no valid OPPs remain
[ Upstream commit 335ffab ] This WARN can be triggered per-core and the stack trace is not useful. Replace it with plain dev_err(). Fix a comment while at it. Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent be37f7d commit 3dea931

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

drivers/opp/of.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -870,8 +870,9 @@ static int _of_add_opp_table_v2(struct device *dev, struct opp_table *opp_table)
870870
}
871871
}
872872

873-
/* There should be one of more OPP defined */
874-
if (WARN_ON(!count)) {
873+
/* There should be one or more OPPs defined */
874+
if (!count) {
875+
dev_err(dev, "%s: no supported OPPs", __func__);
875876
ret = -ENOENT;
876877
goto remove_static_opp;
877878
}

0 commit comments

Comments
 (0)