summaryrefslogtreecommitdiff
path: root/drivers/sh/clk/core.c
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2010-11-19 16:43:23 +0900
committerPaul Mundt <lethal@linux-sh.org>2010-11-19 16:43:23 +0900
commitdfcd6e438927ad8c54278e5b1a34a4fe76e57ad2 (patch)
treeabbf7999568e51141ccc8297bc095d095e1f6f75 /drivers/sh/clk/core.c
parentd53e4307c2f3856167407a1d9b8f8fa001286066 (diff)
parentf278ea849e15147269190e943937fa82e66078b1 (diff)
downloadolio-linux-3.10-dfcd6e438927ad8c54278e5b1a34a4fe76e57ad2.tar.xz
olio-linux-3.10-dfcd6e438927ad8c54278e5b1a34a4fe76e57ad2.zip
Merge branch 'common/clkfwk' into sh-fixes-for-linus
Diffstat (limited to 'drivers/sh/clk/core.c')
-rw-r--r--drivers/sh/clk/core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/sh/clk/core.c b/drivers/sh/clk/core.c
index 87743e7d4d4..3f5e387ed56 100644
--- a/drivers/sh/clk/core.c
+++ b/drivers/sh/clk/core.c
@@ -418,8 +418,11 @@ int clk_register(struct clk *clk)
list_add(&clk->sibling, &root_clks);
list_add(&clk->node, &clock_list);
+
+#ifdef CONFIG_SH_CLK_CPG_LEGACY
if (clk->ops && clk->ops->init)
clk->ops->init(clk);
+#endif
out_unlock:
mutex_unlock(&clock_list_sem);