summaryrefslogtreecommitdiffstats
path: root/drivers/sh
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2010-06-25 07:20:29 +0000
committerPaul Mundt <lethal@linux-sh.org>2010-07-02 18:04:27 +0900
commitc45f6f10263ab53574f54de0caf0299b7d7c06a8 (patch)
tree2bba9e54405987eb58f9484eed8daa8d54717702 /drivers/sh
parent358aa7031d90fc3c7c1dbf1fd248a7e3af3c4b11 (diff)
downloadop-kernel-dev-c45f6f10263ab53574f54de0caf0299b7d7c06a8.zip
op-kernel-dev-c45f6f10263ab53574f54de0caf0299b7d7c06a8.tar.gz
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>
Diffstat (limited to 'drivers/sh')
-rw-r--r--drivers/sh/clk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/sh/clk.c b/drivers/sh/clk.c
index 5d84ada..936c93a 100644
--- a/drivers/sh/clk.c
+++ b/drivers/sh/clk.c
@@ -354,10 +354,10 @@ int clk_set_parent(struct clk *clk, struct clk *parent)
ret = clk_reparent(clk, parent);
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)
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);
}
} else
OpenPOWER on IntegriCloud