linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] sh: clkfwk: bugfix: use clk_reparent() for div6 clocks
@ 2012-01-19  9:00 Kuninori Morimoto
  2012-01-24  1:47 ` Paul Mundt
  0 siblings, 1 reply; 2+ messages in thread
From: Kuninori Morimoto @ 2012-01-19  9:00 UTC (permalink / raw)
  To: linux-sh

Various problems will happen if clk parent was set up directly.
it should use clk_reparent()

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
This is for linus/master

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

diff --git a/drivers/sh/clk/cpg.c b/drivers/sh/clk/cpg.c
index 45fee36..92d314a 100644
--- a/drivers/sh/clk/cpg.c
+++ b/drivers/sh/clk/cpg.c
@@ -190,7 +190,7 @@ static int __init sh_clk_init_parent(struct clk *clk)
 		return -EINVAL;
 	}
 
-	clk->parent = clk->parent_table[val];
+	clk_reparent(clk, clk->parent_table[val]);
 	if (!clk->parent) {
 		pr_err("sh_clk_init_parent: unable to set parent");
 		return -EINVAL;
-- 
1.7.5.4


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

* Re: [PATCH] sh: clkfwk: bugfix: use clk_reparent() for div6 clocks
  2012-01-19  9:00 [PATCH] sh: clkfwk: bugfix: use clk_reparent() for div6 clocks Kuninori Morimoto
@ 2012-01-24  1:47 ` Paul Mundt
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Mundt @ 2012-01-24  1:47 UTC (permalink / raw)
  To: linux-sh

On Thu, Jan 19, 2012 at 01:00:40AM -0800, Kuninori Morimoto wrote:
> Various problems will happen if clk parent was set up directly.
> it should use clk_reparent()
> 
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> ---
> This is for linus/master
> 
>  drivers/sh/clk/cpg.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
Applied, thanks.

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

end of thread, other threads:[~2012-01-24  1:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-19  9:00 [PATCH] sh: clkfwk: bugfix: use clk_reparent() for div6 clocks Kuninori Morimoto
2012-01-24  1:47 ` 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).