Commit 51dd249e authored by Lennert Buytenhek's avatar Lennert Buytenhek Committed by Russell King

[ARM] 4120/1: ep93xx: make clock init an arch_initcall()

Signed-off-by: default avatarLennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent ae0a846e
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/clk.h> #include <linux/clk.h>
#include <linux/err.h> #include <linux/err.h>
#include <linux/module.h>
#include <linux/string.h> #include <linux/string.h>
#include <asm/div64.h> #include <asm/div64.h>
#include <asm/hardware.h> #include <asm/hardware.h>
...@@ -124,7 +125,7 @@ static unsigned long calc_pll_rate(u32 config_word) ...@@ -124,7 +125,7 @@ static unsigned long calc_pll_rate(u32 config_word)
return (unsigned long)rate; return (unsigned long)rate;
} }
void ep93xx_clock_init(void) static int __init ep93xx_clock_init(void)
{ {
u32 value; u32 value;
...@@ -153,4 +154,7 @@ void ep93xx_clock_init(void) ...@@ -153,4 +154,7 @@ void ep93xx_clock_init(void)
printk(KERN_INFO "ep93xx: FCLK %ld MHz, HCLK %ld MHz, PCLK %ld MHz\n", printk(KERN_INFO "ep93xx: FCLK %ld MHz, HCLK %ld MHz, PCLK %ld MHz\n",
clk_f.rate / 1000000, clk_h.rate / 1000000, clk_f.rate / 1000000, clk_h.rate / 1000000,
clk_p.rate / 1000000); clk_p.rate / 1000000);
return 0;
} }
arch_initcall(ep93xx_clock_init);
...@@ -461,8 +461,6 @@ void __init ep93xx_init_devices(void) ...@@ -461,8 +461,6 @@ void __init ep93xx_init_devices(void)
{ {
unsigned int v; unsigned int v;
ep93xx_clock_init();
/* /*
* Disallow access to MaverickCrunch initially. * Disallow access to MaverickCrunch initially.
*/ */
......
...@@ -8,7 +8,6 @@ void ep93xx_map_io(void); ...@@ -8,7 +8,6 @@ void ep93xx_map_io(void);
void ep93xx_init_irq(void); void ep93xx_init_irq(void);
void ep93xx_init_time(unsigned long); void ep93xx_init_time(unsigned long);
void ep93xx_init_devices(void); void ep93xx_init_devices(void);
void ep93xx_clock_init(void);
extern struct sys_timer ep93xx_timer; extern struct sys_timer ep93xx_timer;
struct ep93xx_eth_data struct ep93xx_eth_data
......
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