aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/sh
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2010-10-16 00:51:05 +0900
committerPaul Mundt <lethal@linux-sh.org>2010-10-16 00:51:05 +0900
commite5690e0dcffe38fa7b4b6336169a0c518d8a688e (patch)
tree4243aaaf7bb0f68c0904975ac834f65d46bc1942 /drivers/sh
parentsh: clkfwk: Add a helper for rate rounding by divisor ranges. (diff)
downloadlinux-dev-e5690e0dcffe38fa7b4b6336169a0c518d8a688e.tar.xz
linux-dev-e5690e0dcffe38fa7b4b6336169a0c518d8a688e.zip
sh: clkfwk: Fix fault in frequency iterator.
When updating the iterator macro an old argument assignment was used on the initial assignment causing a fault on the table rounding. Fix it up. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/sh')
-rw-r--r--drivers/sh/clk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/sh/clk.c b/drivers/sh/clk.c
index 018be37ef339..c76f972db69a 100644
--- a/drivers/sh/clk.c
+++ b/drivers/sh/clk.c
@@ -81,7 +81,7 @@ struct clk_rate_round_data {
};
#define for_each_frequency(pos, r, freq) \
- for (pos = r->min, freq = r->func(pos, r->arg); \
+ for (pos = r->min, freq = r->func(pos, r); \
pos < r->max; pos++, freq = r->func(pos, r)) \
if (unlikely(freq == 0)) \
; \