Commit 20383d82 authored by Benoit Cousson's avatar Benoit Cousson Committed by Paul Walmsley

OMAP: hwmod: Replace WARN by pr_warning if clock lookup failed

The WARN is a little bit too verbose and is not providing
usefull information in that case.
Signed-off-by: default avatarBenoit Cousson <b-cousson@ti.com>
Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
parent 4d3ae5a9
...@@ -411,9 +411,9 @@ static int _init_main_clk(struct omap_hwmod *oh) ...@@ -411,9 +411,9 @@ static int _init_main_clk(struct omap_hwmod *oh)
return 0; return 0;
c = omap_clk_get_by_name(oh->main_clk); c = omap_clk_get_by_name(oh->main_clk);
WARN(!c, "omap_hwmod: %s: cannot clk_get main_clk %s\n",
oh->name, oh->main_clk);
if (!c) if (!c)
pr_warning("omap_hwmod: %s: cannot clk_get main_clk %s\n",
oh->name, oh->main_clk);
ret = -EINVAL; ret = -EINVAL;
oh->_clk = c; oh->_clk = c;
...@@ -446,9 +446,9 @@ static int _init_interface_clks(struct omap_hwmod *oh) ...@@ -446,9 +446,9 @@ static int _init_interface_clks(struct omap_hwmod *oh)
continue; continue;
c = omap_clk_get_by_name(os->clk); c = omap_clk_get_by_name(os->clk);
WARN(!c, "omap_hwmod: %s: cannot clk_get interface_clk %s\n",
oh->name, os->clk);
if (!c) if (!c)
pr_warning("omap_hwmod: %s: cannot clk_get interface_clk %s\n",
oh->name, os->clk);
ret = -EINVAL; ret = -EINVAL;
os->_clk = c; os->_clk = c;
} }
...@@ -472,9 +472,9 @@ static int _init_opt_clks(struct omap_hwmod *oh) ...@@ -472,9 +472,9 @@ static int _init_opt_clks(struct omap_hwmod *oh)
for (i = oh->opt_clks_cnt, oc = oh->opt_clks; i > 0; i--, oc++) { for (i = oh->opt_clks_cnt, oc = oh->opt_clks; i > 0; i--, oc++) {
c = omap_clk_get_by_name(oc->clk); c = omap_clk_get_by_name(oc->clk);
WARN(!c, "omap_hwmod: %s: cannot clk_get opt_clk %s\n",
oh->name, oc->clk);
if (!c) if (!c)
pr_warning("omap_hwmod: %s: cannot clk_get opt_clk %s\n",
oh->name, oc->clk);
ret = -EINVAL; ret = -EINVAL;
oc->_clk = c; oc->_clk = c;
} }
......
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