OMAP: hwmod: warn on missing clockdomain
[pandora-kernel.git] / arch / arm / mach-omap2 / omap_hwmod.c
index bfbd341..d8c8545 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;
 }