summaryrefslogtreecommitdiffstats
path: root/drivers/sh
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2010-10-16 00:51:05 +0900
committerPaul Mundt <lethal@linux-sh.org>2010-10-16 00:51:05 +0900
commite5690e0dcffe38fa7b4b6336169a0c518d8a688e (patch)
tree4243aaaf7bb0f68c0904975ac834f65d46bc1942 /drivers/sh
parent8e122db61c98debbc35e26dd29504958cbcf2cbb (diff)
downloadop-kernel-dev-e5690e0dcffe38fa7b4b6336169a0c518d8a688e.zip
op-kernel-dev-e5690e0dcffe38fa7b4b6336169a0c518d8a688e.tar.gz
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.c2
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)) \
; \
OpenPOWER on IntegriCloud