提交 e5690e0d 编写于 作者: P Paul Mundt

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: NPaul Mundt <lethal@linux-sh.org>
上级 8e122db6
......@@ -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)) \
; \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册