Skip to content

Commit

Permalink
sh: clkfwk: Fix fault in frequency iterator.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Mundt committed Oct 15, 2010
1 parent 8e122db commit e5690e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/sh/clk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) \
; \
Expand Down

0 comments on commit e5690e0

Please sign in to comment.