Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+1 -1
+1 -1
drivers/sh/clk.c
··· 81 81 }; 82 82 83 83 #define for_each_frequency(pos, r, freq) \ 84 - for (pos = r->min, freq = r->func(pos, r->arg); \ 84 + for (pos = r->min, freq = r->func(pos, r); \ 85 85 pos < r->max; pos++, freq = r->func(pos, r)) \ 86 86 if (unlikely(freq == 0)) \ 87 87 ; \