Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e5690e0d authored by Paul Mundt's avatar Paul Mundt
Browse files

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: default avatarPaul Mundt <lethal@linux-sh.org>
parent 8e122db6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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))			\
			;					\