1 --- a/arch/mips/ar7/clock.c
2 +++ b/arch/mips/ar7/clock.c
3 @@ -232,12 +232,12 @@ static void tnetd7300_set_clock(u32 shif
4 calculate(base_clock, frequency, &prediv, &postdiv, &mul);
6 writel(((prediv - 1) << PREDIV_SHIFT) | (postdiv - 1), &clock->ctrl);
9 writel(4, &clock->pll);
10 while (readl(&clock->pll) & PLL_STATUS)
12 writel(((mul - 1) << MUL_SHIFT) | (0xff << 3) | 0x0e, &clock->pll);
17 static void __init tnetd7300_init_clocks(void)
18 @@ -407,7 +407,7 @@ static void __init tnetd7200_init_clocks
22 -int __init ar7_init_clocks(void)
23 +void __init ar7_init_clocks(void)
25 switch (ar7_chip_id()) {
27 @@ -421,7 +421,4 @@ int __init ar7_init_clocks(void)
34 -arch_initcall(ar7_init_clocks);
35 --- a/arch/mips/ar7/time.c
36 +++ b/arch/mips/ar7/time.c
39 void __init plat_time_init(void)
43 mips_hpt_frequency = ar7_cpu_freq() / 2;
45 --- a/arch/mips/include/asm/mach-ar7/ar7.h
46 +++ b/arch/mips/include/asm/mach-ar7/ar7.h
47 @@ -178,4 +178,6 @@ static inline void ar7_device_off(u32 bi
51 +extern void __init ar7_init_clocks(void);
53 #endif /* __AR7_H__ */