Commit 638fa4aa authored by Paul Mundt's avatar Paul Mundt

sh: Fix up SH4-202 clkfwk build.

Some of the SH4-202 code was overlooked in the set_rate() API conversion,
resulting in:

arch/sh/kernel/cpu/sh4/clock-sh4-202.c: error: too many arguments to function 'clk->ops->set_rate'

Fix it up.
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent e819eb86
...@@ -81,8 +81,7 @@ static void shoc_clk_init(struct clk *clk) ...@@ -81,8 +81,7 @@ static void shoc_clk_init(struct clk *clk)
for (i = 0; i < ARRAY_SIZE(frqcr3_divisors); i++) { for (i = 0; i < ARRAY_SIZE(frqcr3_divisors); i++) {
int divisor = frqcr3_divisors[i]; int divisor = frqcr3_divisors[i];
if (clk->ops->set_rate(clk, clk->parent->rate / if (clk->ops->set_rate(clk, clk->parent->rate / divisor) == 0)
divisor, 0) == 0)
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment