diff options
author | Paul Mundt <lethal@linux-sh.org> | 2010-10-15 15:51:05 (GMT) |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-10-15 15:51:05 (GMT) |
commit | e5690e0dcffe38fa7b4b6336169a0c518d8a688e (patch) | |
tree | 4243aaaf7bb0f68c0904975ac834f65d46bc1942 /drivers/sh | |
parent | 8e122db61c98debbc35e26dd29504958cbcf2cbb (diff) | |
download | linux-e5690e0dcffe38fa7b4b6336169a0c518d8a688e.tar.xz |
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 018be37..c76f972 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)) \ ; \ |