OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e122db
)
sh: clkfwk: Fix fault in frequency iterator.
author
Paul Mundt
<lethal@linux-sh.org>
Fri, 15 Oct 2010 15:51:05 +0000
(
00:51
+0900)
committer
Paul 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
patch
|
blob
|
history
diff --git
a/drivers/sh/clk.c
b/drivers/sh/clk.c
index
018be37
..
c76f972
100644
(file)
--- 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)) \
; \