All of lore.kernel.org
 help / color / mirror / Atom feed
From: Benoit Cousson <b-cousson@ti.com>
To: linux-omap@vger.kernel.org
Cc: Benoit Cousson <b-cousson@ti.com>, Paul Walmsley <paul@pwsan.com>
Subject: [PATCH 10/10] OMAP: hwmod: Replace WARN by pr_warning for clockdomain check
Date: Fri,  7 May 2010 17:44:15 +0200	[thread overview]
Message-ID: <1273247055-15165-11-git-send-email-b-cousson@ti.com> (raw)
In-Reply-To: <1273247055-15165-1-git-send-email-b-cousson@ti.com>

Most of the clock nodes belong to a clock domain, but it is perfectly valid
to have clock without clock domain.
Root clocks for example does not belong to any clock domain.
Keep the warning but reduce the verbosity.

Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Cc: Paul Walmsley <paul@pwsan.com>
---
 arch/arm/mach-omap2/omap_hwmod.c |   13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c
index b6031e4..2fff39f 100644
--- a/arch/arm/mach-omap2/omap_hwmod.c
+++ b/arch/arm/mach-omap2/omap_hwmod.c
@@ -404,21 +404,20 @@ static int _del_initiator_dep(struct omap_hwmod *oh, struct omap_hwmod *init_oh)
  */
 static int _init_main_clk(struct omap_hwmod *oh)
 {
-	struct clk *c;
 	int ret = 0;
 
 	if (!oh->main_clk)
 		return 0;
 
-	c = omap_clk_get_by_name(oh->main_clk);
-	if (!c)
+	oh->_clk = omap_clk_get_by_name(oh->main_clk);
+	if (!oh->_clk)
 		pr_warning("omap_hwmod: %s: cannot clk_get main_clk %s\n",
 			   oh->name, oh->main_clk);
-		ret = -EINVAL;
-	oh->_clk = c;
+		return -EINVAL;
 
-	WARN(!c->clkdm, "omap_hwmod: %s: missing clockdomain for %s.\n",
-	     oh->main_clk, c->name);
+	if (!oh->_clk->clkdm)
+		pr_warning("omap_hwmod: %s: missing clockdomain for %s.\n",
+			   oh->main_clk, oh->_clk->name);
 
 	return ret;
 }
-- 
1.6.1.3


  parent reply	other threads:[~2010-05-07 15:44 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-07 15:44 [PATCH 00/10] OMAP: HWMOD fixes and cleanup Benoit Cousson
2010-05-07 15:44 ` [PATCH 01/10] OMAP4: hwmod: Replace module & device offsets by absolute clkctrl address Benoit Cousson
2010-05-07 15:44 ` [PATCH 02/10] OMAP: CM: Move MAX_MODULE_READY_TIME to cm.h Benoit Cousson
2010-05-07 15:44 ` [PATCH 03/10] OMAP4: hwmod & CM: Implement the omap4_cm_wait_module_ready function Benoit Cousson
2010-05-07 15:44 ` [PATCH 04/10] OMAP4: hwmod: Replace OCPIF_HAS_IDLEST by HWMOD_NO_IDLEST Benoit Cousson
2010-05-26 21:34   ` Kevin Hilman
2010-05-07 15:44 ` [PATCH 05/10] OMAP: hwmod: Fix wrong pointer iteration in oh->slaves Benoit Cousson
2010-05-07 15:44 ` [PATCH 06/10] OMAP: hwmod: Remove IS_ERR check with omap_clk_get_by_name return value Benoit Cousson
2010-05-07 15:44 ` [PATCH 07/10] OMAP: hwmod: Replace WARN by pr_warning if clock lookup failed Benoit Cousson
2010-05-07 15:44 ` [PATCH 08/10] OMAP: hwmod: Do not exit the iteration if one clock init failed Benoit Cousson
2010-05-07 15:44 ` [PATCH 09/10] OMAP: hwmod: Rename hwmod name for the MPU Benoit Cousson
2010-05-07 15:44 ` Benoit Cousson [this message]
2010-05-18 18:24 ` [PATCH 00/10] OMAP: HWMOD fixes and cleanup Paul Walmsley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1273247055-15165-11-git-send-email-b-cousson@ti.com \
    --to=b-cousson@ti.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=paul@pwsan.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.