Commit 51dd249eff28924f838a72a50c417b2089e0f6a9
Committed by
Russell King
1 parent
ae0a846e41
[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>
Showing 3 changed files with 5 additions and 4 deletions Side-by-side Diff
arch/arm/mach-ep93xx/clock.c
... | ... | @@ -13,6 +13,7 @@ |
13 | 13 | #include <linux/kernel.h> |
14 | 14 | #include <linux/clk.h> |
15 | 15 | #include <linux/err.h> |
16 | +#include <linux/module.h> | |
16 | 17 | #include <linux/string.h> |
17 | 18 | #include <asm/div64.h> |
18 | 19 | #include <asm/hardware.h> |
... | ... | @@ -124,7 +125,7 @@ |
124 | 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 | 130 | u32 value; |
130 | 131 | |
131 | 132 | |
... | ... | @@ -153,5 +154,8 @@ |
153 | 154 | printk(KERN_INFO "ep93xx: FCLK %ld MHz, HCLK %ld MHz, PCLK %ld MHz\n", |
154 | 155 | clk_f.rate / 1000000, clk_h.rate / 1000000, |
155 | 156 | clk_p.rate / 1000000); |
157 | + | |
158 | + return 0; | |
156 | 159 | } |
160 | +arch_initcall(ep93xx_clock_init); |
arch/arm/mach-ep93xx/core.c
include/asm-arm/arch-ep93xx/platform.h