sh: move a debug printk() to a more meaningful location in the clock driver
To actually output the _new_ clock rate it first has to be set. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
parent
358aa7031d
commit
c45f6f1026
1 changed files with 2 additions and 2 deletions
|
@ -354,10 +354,10 @@ int clk_set_parent(struct clk *clk, struct clk *parent)
|
||||||
ret = clk_reparent(clk, parent);
|
ret = clk_reparent(clk, parent);
|
||||||
|
|
||||||
if (ret == 0) {
|
if (ret == 0) {
|
||||||
pr_debug("clock: set parent of %s to %s (new rate %ld)\n",
|
|
||||||
clk->name, clk->parent->name, clk->rate);
|
|
||||||
if (clk->ops->recalc)
|
if (clk->ops->recalc)
|
||||||
clk->rate = clk->ops->recalc(clk);
|
clk->rate = clk->ops->recalc(clk);
|
||||||
|
pr_debug("clock: set parent of %s to %s (new rate %ld)\n",
|
||||||
|
clk->name, clk->parent->name, clk->rate);
|
||||||
propagate_rate(clk);
|
propagate_rate(clk);
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
|
|
Loading…
Add table
Reference in a new issue