diff options
author | Kevin Hilman <khilman@deeprootsystems.com> | 2009-12-09 00:34:24 +0100 |
---|---|---|
committer | paul <paul@twilight.(none)> | 2009-12-12 01:00:44 +0100 |
commit | 81d7c6ffccd1d5369942c428faa9ee25a3d59db8 (patch) | |
tree | e62e7a5729c2a4d4769fe8f300d57dc18fbc8da0 /arch/arm | |
parent | OMAP: omap_device: use read_persistent_clock() instead of getnstimeofday() (diff) | |
download | linux-81d7c6ffccd1d5369942c428faa9ee25a3d59db8.tar.xz linux-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.c | 3 |
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; } |