diff mbox

sh: move a debug printk() to a more meaningful location in the clock driver

Message ID Pine.LNX.4.64.1006250919410.1223@axis700.grange (mailing list archive)
State Accepted
Commit c45f6f10263ab53574f54de0caf0299b7d7c06a8
Headers show

Commit Message

Guennadi Liakhovetski June 25, 2010, 7:20 a.m. UTC
None
diff mbox

Patch

diff --git a/drivers/sh/clk.c b/drivers/sh/clk.c
index 691f829..cede14e 100644
--- a/drivers/sh/clk.c
+++ b/drivers/sh/clk.c
@@ -341,10 +341,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