diff options
author | Benoit Cousson <b-cousson@ti.com> | 2010-05-20 14:31:09 -0400 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2010-05-20 14:31:09 -0400 |
commit | 20383d82160d918047bb10a4f6e170f4bac195a7 (patch) | |
tree | bf93c70e6f86fd34dd48907e4bbbc6594859a6e8 /arch/arm/mach-omap2/omap_hwmod.c | |
parent | 4d3ae5a9a7b3685c6d260a82f4098145862b2cd3 (diff) |
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>
Diffstat (limited to 'arch/arm/mach-omap2/omap_hwmod.c')
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod.c | 12 |
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) | |||
411 | return 0; | 411 | return 0; |
412 | 412 | ||
413 | c = omap_clk_get_by_name(oh->main_clk); | 413 | c = omap_clk_get_by_name(oh->main_clk); |
414 | WARN(!c, "omap_hwmod: %s: cannot clk_get main_clk %s\n", | ||
415 | oh->name, oh->main_clk); | ||
416 | if (!c) | 414 | if (!c) |
415 | pr_warning("omap_hwmod: %s: cannot clk_get main_clk %s\n", | ||
416 | oh->name, oh->main_clk); | ||
417 | ret = -EINVAL; | 417 | ret = -EINVAL; |
418 | oh->_clk = c; | 418 | oh->_clk = c; |
419 | 419 | ||
@@ -446,9 +446,9 @@ static int _init_interface_clks(struct omap_hwmod *oh) | |||
446 | continue; | 446 | continue; |
447 | 447 | ||
448 | c = omap_clk_get_by_name(os->clk); | 448 | c = omap_clk_get_by_name(os->clk); |
449 | WARN(!c, "omap_hwmod: %s: cannot clk_get interface_clk %s\n", | ||
450 | oh->name, os->clk); | ||
451 | if (!c) | 449 | if (!c) |
450 | pr_warning("omap_hwmod: %s: cannot clk_get interface_clk %s\n", | ||
451 | oh->name, os->clk); | ||
452 | ret = -EINVAL; | 452 | ret = -EINVAL; |
453 | os->_clk = c; | 453 | os->_clk = c; |
454 | } | 454 | } |
@@ -472,9 +472,9 @@ static int _init_opt_clks(struct omap_hwmod *oh) | |||
472 | 472 | ||
473 | for (i = oh->opt_clks_cnt, oc = oh->opt_clks; i > 0; i--, oc++) { | 473 | for (i = oh->opt_clks_cnt, oc = oh->opt_clks; i > 0; i--, oc++) { |
474 | c = omap_clk_get_by_name(oc->clk); | 474 | c = omap_clk_get_by_name(oc->clk); |
475 | WARN(!c, "omap_hwmod: %s: cannot clk_get opt_clk %s\n", | ||
476 | oh->name, oc->clk); | ||
477 | if (!c) | 475 | if (!c) |
476 | pr_warning("omap_hwmod: %s: cannot clk_get opt_clk %s\n", | ||
477 | oh->name, oc->clk); | ||
478 | ret = -EINVAL; | 478 | ret = -EINVAL; |
479 | oc->_clk = c; | 479 | oc->_clk = c; |
480 | } | 480 | } |