From: Paul Mundt Date: Fri, 15 Oct 2010 15:51:05 +0000 (+0900) Subject: sh: clkfwk: Fix fault in frequency iterator. X-Git-Tag: v2.6.37-rc1~136^2~4 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=e5690e0dcffe38fa7b4b6336169a0c518d8a688e;p=linux.git 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 --- 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)) \ ; \