summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Cousson <b-cousson@ti.com>2010-05-20 22:31:09 +0400
committerPaul Walmsley <paul@pwsan.com>2010-05-20 22:31:09 +0400
commit20383d82160d918047bb10a4f6e170f4bac195a7 (patch)
treebf93c70e6f86fd34dd48907e4bbbc6594859a6e8
parent4d3ae5a9a7b3685c6d260a82f4098145862b2cd3 (diff)
downloadlinux-20383d82160d918047bb10a4f6e170f4bac195a7.tar.xz
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: Benoit Cousson <b-cousson@ti.com> Signed-off-by: Paul Walmsley <paul@pwsan.com>
-rw-r--r--arch/arm/mach-omap2/omap_hwmod.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c
index a62920beebc6..5d3a3ea37422 100644
--- a/arch/arm/mach-omap2/omap_hwmod.c
+++ b/arch/arm/mach-omap2/omap_hwmod.c
@@ -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;
@@ -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;
}
@@ -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;
}