]> git.baikalelectronics.ru Git - kernel.git/commitdiff
OMAP: hwmod: warn on missing clockdomain
authorKevin Hilman <khilman@deeprootsystems.com>
Tue, 8 Dec 2009 23:34:24 +0000 (16:34 -0700)
committerpaul <paul@twilight.(none)>
Sat, 12 Dec 2009 00:00:44 +0000 (17:00 -0700)
WARN if a clock/hwmod is missing a clockdomain association since
resulting hwmod will not be able to correctly enable/disable clocks.

Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/mach-omap2/omap_hwmod.c

index bfbd34142b3798b80e5ced6bfa9fca077f5c4700..d8c8545875b18b84aa89449ffa87911d687d129e 100644 (file)
@@ -353,6 +353,9 @@ static int _init_main_clk(struct omap_hwmod *oh)
                ret = -EINVAL;
        oh->_clk = c;
 
+       WARN(!c->clkdm, "omap_hwmod: %s: missing clockdomain for %s.\n",
+            oh->clkdev_con_id, c->name);
+
        return ret;
 }