diff options
author | Lennert Buytenhek <buytenh@wantstofly.org> | 2007-02-04 16:45:33 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2007-02-08 09:48:11 -0500 |
commit | 51dd249eff28924f838a72a50c417b2089e0f6a9 (patch) | |
tree | 5a68a16a149bdaaed6b17c6236684fb78a3abc41 | |
parent | ae0a846e411dc0b568e8ccda584896310ee5f369 (diff) |
[ARM] 4120/1: ep93xx: make clock init an arch_initcall()
Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
-rw-r--r-- | arch/arm/mach-ep93xx/clock.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-ep93xx/core.c | 2 | ||||
-rw-r--r-- | include/asm-arm/arch-ep93xx/platform.h | 1 |
3 files changed, 5 insertions, 4 deletions
diff --git a/arch/arm/mach-ep93xx/clock.c b/arch/arm/mach-ep93xx/clock.c index 08ad782c1649..f174d1a3b11c 100644 --- a/arch/arm/mach-ep93xx/clock.c +++ b/arch/arm/mach-ep93xx/clock.c | |||
@@ -13,6 +13,7 @@ | |||
13 | #include <linux/kernel.h> | 13 | #include <linux/kernel.h> |
14 | #include <linux/clk.h> | 14 | #include <linux/clk.h> |
15 | #include <linux/err.h> | 15 | #include <linux/err.h> |
16 | #include <linux/module.h> | ||
16 | #include <linux/string.h> | 17 | #include <linux/string.h> |
17 | #include <asm/div64.h> | 18 | #include <asm/div64.h> |
18 | #include <asm/hardware.h> | 19 | #include <asm/hardware.h> |
@@ -124,7 +125,7 @@ static unsigned long calc_pll_rate(u32 config_word) | |||
124 | return (unsigned long)rate; | 125 | return (unsigned long)rate; |
125 | } | 126 | } |
126 | 127 | ||
127 | void ep93xx_clock_init(void) | 128 | static int __init ep93xx_clock_init(void) |
128 | { | 129 | { |
129 | u32 value; | 130 | u32 value; |
130 | 131 | ||
@@ -153,4 +154,7 @@ void ep93xx_clock_init(void) | |||
153 | printk(KERN_INFO "ep93xx: FCLK %ld MHz, HCLK %ld MHz, PCLK %ld MHz\n", | 154 | printk(KERN_INFO "ep93xx: FCLK %ld MHz, HCLK %ld MHz, PCLK %ld MHz\n", |
154 | clk_f.rate / 1000000, clk_h.rate / 1000000, | 155 | clk_f.rate / 1000000, clk_h.rate / 1000000, |
155 | clk_p.rate / 1000000); | 156 | clk_p.rate / 1000000); |
157 | |||
158 | return 0; | ||
156 | } | 159 | } |
160 | arch_initcall(ep93xx_clock_init); | ||
diff --git a/arch/arm/mach-ep93xx/core.c b/arch/arm/mach-ep93xx/core.c index 6b26346191c0..913ea4328b2f 100644 --- a/arch/arm/mach-ep93xx/core.c +++ b/arch/arm/mach-ep93xx/core.c | |||
@@ -461,8 +461,6 @@ void __init ep93xx_init_devices(void) | |||
461 | { | 461 | { |
462 | unsigned int v; | 462 | unsigned int v; |
463 | 463 | ||
464 | ep93xx_clock_init(); | ||
465 | |||
466 | /* | 464 | /* |
467 | * Disallow access to MaverickCrunch initially. | 465 | * Disallow access to MaverickCrunch initially. |
468 | */ | 466 | */ |
diff --git a/include/asm-arm/arch-ep93xx/platform.h b/include/asm-arm/arch-ep93xx/platform.h index b4a8deb8bdef..44eccec2cba4 100644 --- a/include/asm-arm/arch-ep93xx/platform.h +++ b/include/asm-arm/arch-ep93xx/platform.h | |||
@@ -8,7 +8,6 @@ void ep93xx_map_io(void); | |||
8 | void ep93xx_init_irq(void); | 8 | void ep93xx_init_irq(void); |
9 | void ep93xx_init_time(unsigned long); | 9 | void ep93xx_init_time(unsigned long); |
10 | void ep93xx_init_devices(void); | 10 | void ep93xx_init_devices(void); |
11 | void ep93xx_clock_init(void); | ||
12 | extern struct sys_timer ep93xx_timer; | 11 | extern struct sys_timer ep93xx_timer; |
13 | 12 | ||
14 | struct ep93xx_eth_data | 13 | struct ep93xx_eth_data |