]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
sh: clkfwk: Fix fault in frequency iterator.
authorPaul Mundt <lethal@linux-sh.org>
Fri, 15 Oct 2010 15:51:05 +0000 (00:51 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 15 Oct 2010 15:51:05 +0000 (00:51 +0900)
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>
drivers/sh/clk.c

index 018be37ef3392d157f0bafef7d91cd8008721415..c76f972db69a017a243ad959ed98c9ebb88435cf 100644 (file)
@@ -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))                        \
                        ;                                       \