]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
OMAP2/3 clock: warn if clock is missing clockdomain
authorPaul Walmsley <paul@pwsan.com>
Wed, 10 Sep 2008 16:48:10 +0000 (10:48 -0600)
committerTony Lindgren <tony@atomide.com>
Fri, 12 Sep 2008 18:21:22 +0000 (11:21 -0700)
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 <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/clock.c

index 88c8ef43e8eba23130a05d0599193ef8a8ed235b..eee5511aae2a749ff81871e5f2a0e9ad828d3c8e 100644 (file)
@@ -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);
        }
 }