Explorar o código

OMAP: hwmod: warn on missing clockdomain

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>
Kevin Hilman %!s(int64=15) %!d(string=hai) anos
pai
achega
81d7c6ffcc
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      arch/arm/mach-omap2/omap_hwmod.c

+ 3 - 0
arch/arm/mach-omap2/omap_hwmod.c

@@ -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;
 }