Commit c44fccb5 authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Stephen Boyd

clk: replace pr_warn() with pr_err() for fatal cases

These three cases let clk_register() fail.  They should be considered
as error messages.
Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: default avatarVladimir Zapolskiy <vz@mleia.com>
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent 3c436bf9
...@@ -2320,14 +2320,14 @@ static int __clk_core_init(struct clk_core *core) ...@@ -2320,14 +2320,14 @@ static int __clk_core_init(struct clk_core *core)
if (core->ops->set_rate && if (core->ops->set_rate &&
!((core->ops->round_rate || core->ops->determine_rate) && !((core->ops->round_rate || core->ops->determine_rate) &&
core->ops->recalc_rate)) { core->ops->recalc_rate)) {
pr_warning("%s: %s must implement .round_rate or .determine_rate in addition to .recalc_rate\n", pr_err("%s: %s must implement .round_rate or .determine_rate in addition to .recalc_rate\n",
__func__, core->name); __func__, core->name);
ret = -EINVAL; ret = -EINVAL;
goto out; goto out;
} }
if (core->ops->set_parent && !core->ops->get_parent) { if (core->ops->set_parent && !core->ops->get_parent) {
pr_warning("%s: %s must implement .get_parent & .set_parent\n", pr_err("%s: %s must implement .get_parent & .set_parent\n",
__func__, core->name); __func__, core->name);
ret = -EINVAL; ret = -EINVAL;
goto out; goto out;
...@@ -2335,7 +2335,7 @@ static int __clk_core_init(struct clk_core *core) ...@@ -2335,7 +2335,7 @@ static int __clk_core_init(struct clk_core *core)
if (core->ops->set_rate_and_parent && if (core->ops->set_rate_and_parent &&
!(core->ops->set_parent && core->ops->set_rate)) { !(core->ops->set_parent && core->ops->set_rate)) {
pr_warn("%s: %s must implement .set_parent & .set_rate\n", pr_err("%s: %s must implement .set_parent & .set_rate\n",
__func__, core->name); __func__, core->name);
ret = -EINVAL; ret = -EINVAL;
goto out; goto out;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment