diff options
author | Peter De Schrijver <pdeschrijver@nvidia.com> | 2013-06-05 11:06:35 -0400 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2013-06-11 21:03:54 -0400 |
commit | 670decdd9544eddbc2ecf14789da4845f8afdab0 (patch) | |
tree | 560dd2104ec8a74bb265842f1094de04a809e2ce /drivers/clk | |
parent | 408a24f8227f259eea97c6b4f66d1592e2f651b6 (diff) |
clk: use clk_get_rate() for debugfs
debugfs uses the rate field directly. However this ignores the
CLK_GET_RATE_NOCACHE flag. Call clk_get_rate() instead.
Tested-by: Mark Zhang <markz@nvidia.com>
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers/clk')
-rw-r--r-- | drivers/clk/clk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index af0dbccb375d..9b2f94197dbf 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c | |||
@@ -107,7 +107,7 @@ static void clk_summary_show_one(struct seq_file *s, struct clk *c, int level) | |||
107 | seq_printf(s, "%*s%-*s %-11d %-12d %-10lu", | 107 | seq_printf(s, "%*s%-*s %-11d %-12d %-10lu", |
108 | level * 3 + 1, "", | 108 | level * 3 + 1, "", |
109 | 30 - level * 3, c->name, | 109 | 30 - level * 3, c->name, |
110 | c->enable_count, c->prepare_count, c->rate); | 110 | c->enable_count, c->prepare_count, clk_get_rate(c)); |
111 | seq_printf(s, "\n"); | 111 | seq_printf(s, "\n"); |
112 | } | 112 | } |
113 | 113 | ||
@@ -166,7 +166,7 @@ static void clk_dump_one(struct seq_file *s, struct clk *c, int level) | |||
166 | seq_printf(s, "\"%s\": { ", c->name); | 166 | seq_printf(s, "\"%s\": { ", c->name); |
167 | seq_printf(s, "\"enable_count\": %d,", c->enable_count); | 167 | seq_printf(s, "\"enable_count\": %d,", c->enable_count); |
168 | seq_printf(s, "\"prepare_count\": %d,", c->prepare_count); | 168 | seq_printf(s, "\"prepare_count\": %d,", c->prepare_count); |
169 | seq_printf(s, "\"rate\": %lu", c->rate); | 169 | seq_printf(s, "\"rate\": %lu", clk_get_rate(c)); |
170 | } | 170 | } |
171 | 171 | ||
172 | static void clk_dump_subtree(struct seq_file *s, struct clk *c, int level) | 172 | static void clk_dump_subtree(struct seq_file *s, struct clk *c, int level) |