clk: tegra: emc: Replace BUG() with WARN_ONCE()
There is no justification for the BUG() in this code. Signed-off-by: Dmitry Osipenko <digetx@gmail.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
This commit is contained in:
parent
913c3072eb
commit
f4037654a8
|
@ -222,7 +222,10 @@ static int emc_set_timing(struct tegra_clk_emc *tegra,
|
|||
|
||||
if (emc_get_parent(&tegra->hw) == timing->parent_index &&
|
||||
clk_get_rate(timing->parent) != timing->parent_rate) {
|
||||
BUG();
|
||||
WARN_ONCE(1, "parent %s rate mismatch %lu %lu\n",
|
||||
__clk_get_name(timing->parent),
|
||||
clk_get_rate(timing->parent),
|
||||
timing->parent_rate);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue