aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorKevin Hilman <khilman@deeprootsystems.com>2009-12-08 16:34:24 -0700
committerpaul <paul@twilight.(none)>2009-12-11 17:00:44 -0700
commit81d7c6ffccd1d5369942c428faa9ee25a3d59db8 (patch)
treee62e7a5729c2a4d4769fe8f300d57dc18fbc8da0 /arch/arm
parentOMAP: omap_device: use read_persistent_clock() instead of getnstimeofday() (diff)
downloadlinux-dev-81d7c6ffccd1d5369942c428faa9ee25a3d59db8.tar.xz
linux-dev-81d7c6ffccd1d5369942c428faa9ee25a3d59db8.zip
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>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-omap2/omap_hwmod.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c
index bfbd34142b37..d8c8545875b1 100644
--- a/arch/arm/mach-omap2/omap_hwmod.c
+++ b/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;
}