aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/omap_hwmod.c
diff options
context:
space:
mode:
authorKevin Hilman <khilman@deeprootsystems.com>2009-12-08 18:34:24 -0500
committerpaul <paul@twilight.(none)>2009-12-11 19:00:44 -0500
commit81d7c6ffccd1d5369942c428faa9ee25a3d59db8 (patch)
treee62e7a5729c2a4d4769fe8f300d57dc18fbc8da0 /arch/arm/mach-omap2/omap_hwmod.c
parentd22926677f2244a6b68e7ea21d6c9338659c17aa (diff)
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/mach-omap2/omap_hwmod.c')
-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)
353 ret = -EINVAL; 353 ret = -EINVAL;
354 oh->_clk = c; 354 oh->_clk = c;
355 355
356 WARN(!c->clkdm, "omap_hwmod: %s: missing clockdomain for %s.\n",
357 oh->clkdev_con_id, c->name);
358
356 return ret; 359 return ret;
357} 360}
358 361