linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] sh: clkfwk: sh_clk_init_parent() should be called after clk_register()
@ 2011-12-12  3:02 Kuninori Morimoto
  2011-12-13  2:21 ` Paul Mundt
  0 siblings, 1 reply; 2+ messages in thread
From: Kuninori Morimoto @ 2011-12-12  3:02 UTC (permalink / raw)
  To: linux-sh

sh_clk_init_parent() are using clk->mapped_reg
which is mapped in clk_register()

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
This is for latest paul/common/clkfwk

 drivers/sh/clk/cpg.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/sh/clk/cpg.c b/drivers/sh/clk/cpg.c
index a0d8faa..45fee36 100644
--- a/drivers/sh/clk/cpg.c
+++ b/drivers/sh/clk/cpg.c
@@ -222,11 +222,11 @@ static int __init sh_clk_div6_register_ops(struct clk *clks, int nr,
 		clkp->ops = ops;
 		clkp->freq_table = freq_table + (k * freq_table_size);
 		clkp->freq_table[nr_divs].frequency = CPUFREQ_TABLE_END;
-		ret = sh_clk_init_parent(clkp);
+		ret = clk_register(clkp);
 		if (ret < 0)
 			break;
 
-		ret = clk_register(clkp);
+		ret = sh_clk_init_parent(clkp);
 	}
 
 	return ret;
-- 
1.7.5.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] sh: clkfwk: sh_clk_init_parent() should be called after clk_register()
  2011-12-12  3:02 [PATCH] sh: clkfwk: sh_clk_init_parent() should be called after clk_register() Kuninori Morimoto
@ 2011-12-13  2:21 ` Paul Mundt
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Mundt @ 2011-12-13  2:21 UTC (permalink / raw)
  To: linux-sh

On Sun, Dec 11, 2011 at 07:02:09PM -0800, Kuninori Morimoto wrote:
> sh_clk_init_parent() are using clk->mapped_reg
> which is mapped in clk_register()
> 
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

Applied, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-12-13  2:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-12  3:02 [PATCH] sh: clkfwk: sh_clk_init_parent() should be called after clk_register() Kuninori Morimoto
2011-12-13  2:21 ` Paul Mundt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).