summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2010-11-19 08:43:23 +0100
committerPaul Mundt <lethal@linux-sh.org>2010-11-19 08:43:23 +0100
commitdfcd6e438927ad8c54278e5b1a34a4fe76e57ad2 (patch)
treeabbf7999568e51141ccc8297bc095d095e1f6f75
parentsh: Use GCC __builtin_prefetch() to implement prefetch(). (diff)
parentsh: clkfwk: Build fix for non-legacy CPG changes. (diff)
downloadlinux-dfcd6e438927ad8c54278e5b1a34a4fe76e57ad2.tar.xz
linux-dfcd6e438927ad8c54278e5b1a34a4fe76e57ad2.zip
Merge branch 'common/clkfwk' into sh-fixes-for-linus
-rw-r--r--drivers/sh/clk/core.c3
-rw-r--r--drivers/sh/clk/cpg.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/drivers/sh/clk/core.c b/drivers/sh/clk/core.c
index 87743e7d4d42..3f5e387ed564 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);
diff --git a/drivers/sh/clk/cpg.c b/drivers/sh/clk/cpg.c
index 359e9a322c7b..6172335ae323 100644
--- a/drivers/sh/clk/cpg.c
+++ b/drivers/sh/clk/cpg.c
@@ -131,7 +131,7 @@ static int sh_clk_div6_enable(struct clk *clk)
unsigned long value;
int ret;
- ret = sh_clk_div6_set_rate(clk, clk->rate, 0);
+ ret = sh_clk_div6_set_rate(clk, clk->rate);
if (ret == 0) {
value = __raw_readl(clk->enable_reg);
value &= ~0x100; /* clear stop bit to enable clock */