[tip:core/locking] sh: move a debug printk() to a more meaningful location in the clock driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Commit-ID:  c45f6f10263ab53574f54de0caf0299b7d7c06a8
Gitweb:     http://git.kernel.org/tip/c45f6f10263ab53574f54de0caf0299b7d7c06a8
Author:     Guennadi Liakhovetski <g.liakhovetski@xxxxxx>
AuthorDate: Fri, 25 Jun 2010 07:20:29 +0000
Committer:  Paul Mundt <lethal@xxxxxxxxxxxx>
CommitDate: Fri, 2 Jul 2010 18:04:27 +0900

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@xxxxxx>
Signed-off-by: Paul Mundt <lethal@xxxxxxxxxxxx>
---
 drivers/sh/clk.c |    4 ++--
 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
--
To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Stable Commits]     [Linux Stable Kernel]     [Linux Kernel]     [Linux USB Devel]     [Linux Video &Media]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux