diff options
author | Paul Mundt <lethal@linux-sh.org> | 2010-10-16 00:51:05 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-10-16 00:51:05 +0900 |
commit | e5690e0dcffe38fa7b4b6336169a0c518d8a688e (patch) | |
tree | 4243aaaf7bb0f68c0904975ac834f65d46bc1942 /drivers/sh | |
parent | 8e122db61c98debbc35e26dd29504958cbcf2cbb (diff) | |
download | blackbird-op-linux-e5690e0dcffe38fa7b4b6336169a0c518d8a688e.tar.gz blackbird-op-linux-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.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 { }; #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)) \ ; \ |