Explorar o código

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>
Paul Mundt %!s(int64=15) %!d(string=hai) anos
pai
achega
e5690e0dcf
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      drivers/sh/clk.c

+ 1 - 1
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))			\
 			;					\