diff options
author | Paul Mundt <lethal@linux-sh.org> | 2010-10-15 11:51:05 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-10-15 11:51:05 -0400 |
commit | e5690e0dcffe38fa7b4b6336169a0c518d8a688e (patch) | |
tree | 4243aaaf7bb0f68c0904975ac834f65d46bc1942 /drivers | |
parent | 8e122db61c98debbc35e26dd29504958cbcf2cbb (diff) |
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')
-rw-r--r-- | drivers/sh/clk.c | 2 |
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 { | |||
81 | }; | 81 | }; |
82 | 82 | ||
83 | #define for_each_frequency(pos, r, freq) \ | 83 | #define for_each_frequency(pos, r, freq) \ |
84 | for (pos = r->min, freq = r->func(pos, r->arg); \ | 84 | for (pos = r->min, freq = r->func(pos, r); \ |
85 | pos < r->max; pos++, freq = r->func(pos, r)) \ | 85 | pos < r->max; pos++, freq = r->func(pos, r)) \ |
86 | if (unlikely(freq == 0)) \ | 86 | if (unlikely(freq == 0)) \ |
87 | ; \ | 87 | ; \ |