Skip to content

Commit

Permalink
OMAP: hwmod: Replace WARN by pr_warning if clock lookup failed
Browse files Browse the repository at this point in the history
The WARN is a little bit too verbose and is not providing
usefull information in that case.

Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
  • Loading branch information
Benoit Cousson authored and Paul Walmsley committed May 20, 2010
1 parent 4d3ae5a commit 20383d8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions arch/arm/mach-omap2/omap_hwmod.c
Original file line number Diff line number Diff line change
Expand Up @@ -411,9 +411,9 @@ static int _init_main_clk(struct omap_hwmod *oh)
return 0;

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)
pr_warning("omap_hwmod: %s: cannot clk_get main_clk %s\n",
oh->name, oh->main_clk);
ret = -EINVAL;
oh->_clk = c;

Expand Down Expand Up @@ -446,9 +446,9 @@ static int _init_interface_clks(struct omap_hwmod *oh)
continue;

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)
pr_warning("omap_hwmod: %s: cannot clk_get interface_clk %s\n",
oh->name, os->clk);
ret = -EINVAL;
os->_clk = c;
}
Expand All @@ -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++) {
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)
pr_warning("omap_hwmod: %s: cannot clk_get opt_clk %s\n",
oh->name, oc->clk);
ret = -EINVAL;
oc->_clk = c;
}
Expand Down

0 comments on commit 20383d8

Please sign in to comment.