From: Paul Walmsley Date: Wed, 10 Sep 2008 16:48:10 +0000 (-0600) Subject: OMAP2/3 clock: warn if clock is missing clockdomain X-Git-Tag: v2.6.27-omap1~185 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=61d3e74f1f61a92e45a31014ad93372856d3c9d9;p=linux-2.6-omap-h63xx.git OMAP2/3 clock: warn if clock is missing clockdomain At this point, all OMAP2/3 clocks should be associated with a clockdomain. Warn in clk_register() if any are missing a clockdomain Signed-off-by: Paul Walmsley Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/mach-omap2/clock.c b/arch/arm/mach-omap2/clock.c index 88c8ef43e8e..eee5511aae2 100644 --- a/arch/arm/mach-omap2/clock.c +++ b/arch/arm/mach-omap2/clock.c @@ -78,8 +78,10 @@ void omap2_init_clk_clkdm(struct clk *clk) { struct clockdomain *clkdm; - if (!clk->clkdm.name) + if (!clk->clkdm.name) { + pr_err("clock: %s: missing clockdomain", clk->name); return; + } clkdm = clkdm_lookup(clk->clkdm.name); if (clkdm) { @@ -87,8 +89,8 @@ void omap2_init_clk_clkdm(struct clk *clk) clk->name, clk->clkdm.name); clk->clkdm.ptr = clkdm; } else { - pr_debug("clock: could not associate clk %s to " - "clkdm %s\n", clk->name, clk->clkdm.name); + pr_err("clock: %s: could not associate to clkdm %s\n", + clk->name, clk->clkdm.name); } }