diff options
author | Alexander Shiyan <shc_work@mail.ru> | 2013-05-13 13:07:31 -0400 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2013-06-11 18:47:33 -0400 |
commit | d0ad52a6fa9018d18076a887898f7912ae91f246 (patch) | |
tree | 6e9f2eacc6c1306df1ebb9adfd4f02698935b9b5 /arch/arm/mach-clps711x | |
parent | 7e4615cd1ffc5633470b2788345455d288808f4a (diff) |
ARM: clps711x: Replace "arch_initcall" in common code with ".init_early"
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch/arm/mach-clps711x')
-rw-r--r-- | arch/arm/mach-clps711x/board-autcpu12.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-clps711x/board-cdb89712.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-clps711x/board-clep7312.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-clps711x/board-edb7211.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-clps711x/board-fortunet.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-clps711x/board-p720t.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-clps711x/common.c | 10 | ||||
-rw-r--r-- | arch/arm/mach-clps711x/common.h | 1 |
8 files changed, 10 insertions, 7 deletions
diff --git a/arch/arm/mach-clps711x/board-autcpu12.c b/arch/arm/mach-clps711x/board-autcpu12.c index cd503149d30b..5867aebd8d0c 100644 --- a/arch/arm/mach-clps711x/board-autcpu12.c +++ b/arch/arm/mach-clps711x/board-autcpu12.c | |||
@@ -271,6 +271,7 @@ MACHINE_START(AUTCPU12, "autronix autcpu12") | |||
271 | .atag_offset = 0x20000, | 271 | .atag_offset = 0x20000, |
272 | .nr_irqs = CLPS711X_NR_IRQS, | 272 | .nr_irqs = CLPS711X_NR_IRQS, |
273 | .map_io = clps711x_map_io, | 273 | .map_io = clps711x_map_io, |
274 | .init_early = clps711x_init_early, | ||
274 | .init_irq = clps711x_init_irq, | 275 | .init_irq = clps711x_init_irq, |
275 | .init_time = clps711x_timer_init, | 276 | .init_time = clps711x_timer_init, |
276 | .init_machine = autcpu12_init, | 277 | .init_machine = autcpu12_init, |
diff --git a/arch/arm/mach-clps711x/board-cdb89712.c b/arch/arm/mach-clps711x/board-cdb89712.c index a80ae57743fb..a9e38c6bcfb4 100644 --- a/arch/arm/mach-clps711x/board-cdb89712.c +++ b/arch/arm/mach-clps711x/board-cdb89712.c | |||
@@ -141,6 +141,7 @@ MACHINE_START(CDB89712, "Cirrus-CDB89712") | |||
141 | .atag_offset = 0x100, | 141 | .atag_offset = 0x100, |
142 | .nr_irqs = CLPS711X_NR_IRQS, | 142 | .nr_irqs = CLPS711X_NR_IRQS, |
143 | .map_io = clps711x_map_io, | 143 | .map_io = clps711x_map_io, |
144 | .init_early = clps711x_init_early, | ||
144 | .init_irq = clps711x_init_irq, | 145 | .init_irq = clps711x_init_irq, |
145 | .init_time = clps711x_timer_init, | 146 | .init_time = clps711x_timer_init, |
146 | .init_machine = cdb89712_init, | 147 | .init_machine = cdb89712_init, |
diff --git a/arch/arm/mach-clps711x/board-clep7312.c b/arch/arm/mach-clps711x/board-clep7312.c index 014aa3c19a03..b4764246d0f8 100644 --- a/arch/arm/mach-clps711x/board-clep7312.c +++ b/arch/arm/mach-clps711x/board-clep7312.c | |||
@@ -39,6 +39,7 @@ MACHINE_START(CLEP7212, "Cirrus Logic 7212/7312") | |||
39 | .nr_irqs = CLPS711X_NR_IRQS, | 39 | .nr_irqs = CLPS711X_NR_IRQS, |
40 | .fixup = fixup_clep7312, | 40 | .fixup = fixup_clep7312, |
41 | .map_io = clps711x_map_io, | 41 | .map_io = clps711x_map_io, |
42 | .init_early = clps711x_init_early, | ||
42 | .init_irq = clps711x_init_irq, | 43 | .init_irq = clps711x_init_irq, |
43 | .init_time = clps711x_timer_init, | 44 | .init_time = clps711x_timer_init, |
44 | .handle_irq = clps711x_handle_irq, | 45 | .handle_irq = clps711x_handle_irq, |
diff --git a/arch/arm/mach-clps711x/board-edb7211.c b/arch/arm/mach-clps711x/board-edb7211.c index 3ba4b9e636ae..db804b42e912 100644 --- a/arch/arm/mach-clps711x/board-edb7211.c +++ b/arch/arm/mach-clps711x/board-edb7211.c | |||
@@ -182,6 +182,7 @@ MACHINE_START(EDB7211, "CL-EDB7211 (EP7211 eval board)") | |||
182 | .fixup = fixup_edb7211, | 182 | .fixup = fixup_edb7211, |
183 | .reserve = edb7211_reserve, | 183 | .reserve = edb7211_reserve, |
184 | .map_io = edb7211_map_io, | 184 | .map_io = edb7211_map_io, |
185 | .init_early = clps711x_init_early, | ||
185 | .init_irq = clps711x_init_irq, | 186 | .init_irq = clps711x_init_irq, |
186 | .init_time = clps711x_timer_init, | 187 | .init_time = clps711x_timer_init, |
187 | .init_machine = edb7211_init, | 188 | .init_machine = edb7211_init, |
diff --git a/arch/arm/mach-clps711x/board-fortunet.c b/arch/arm/mach-clps711x/board-fortunet.c index c5675efc8c6a..b1561e3d7c5c 100644 --- a/arch/arm/mach-clps711x/board-fortunet.c +++ b/arch/arm/mach-clps711x/board-fortunet.c | |||
@@ -77,6 +77,7 @@ MACHINE_START(FORTUNET, "ARM-FortuNet") | |||
77 | .nr_irqs = CLPS711X_NR_IRQS, | 77 | .nr_irqs = CLPS711X_NR_IRQS, |
78 | .fixup = fortunet_fixup, | 78 | .fixup = fortunet_fixup, |
79 | .map_io = clps711x_map_io, | 79 | .map_io = clps711x_map_io, |
80 | .init_early = clps711x_init_early, | ||
80 | .init_irq = clps711x_init_irq, | 81 | .init_irq = clps711x_init_irq, |
81 | .init_time = clps711x_timer_init, | 82 | .init_time = clps711x_timer_init, |
82 | .handle_irq = clps711x_handle_irq, | 83 | .handle_irq = clps711x_handle_irq, |
diff --git a/arch/arm/mach-clps711x/board-p720t.c b/arch/arm/mach-clps711x/board-p720t.c index 601ef386215d..dd81b06f68fe 100644 --- a/arch/arm/mach-clps711x/board-p720t.c +++ b/arch/arm/mach-clps711x/board-p720t.c | |||
@@ -366,6 +366,7 @@ MACHINE_START(P720T, "ARM-Prospector720T") | |||
366 | .nr_irqs = CLPS711X_NR_IRQS, | 366 | .nr_irqs = CLPS711X_NR_IRQS, |
367 | .fixup = fixup_p720t, | 367 | .fixup = fixup_p720t, |
368 | .map_io = clps711x_map_io, | 368 | .map_io = clps711x_map_io, |
369 | .init_early = clps711x_init_early, | ||
369 | .init_irq = clps711x_init_irq, | 370 | .init_irq = clps711x_init_irq, |
370 | .init_time = clps711x_timer_init, | 371 | .init_time = clps711x_timer_init, |
371 | .init_machine = p720t_init, | 372 | .init_machine = p720t_init, |
diff --git a/arch/arm/mach-clps711x/common.c b/arch/arm/mach-clps711x/common.c index f42302e466bd..768d41c68cea 100644 --- a/arch/arm/mach-clps711x/common.c +++ b/arch/arm/mach-clps711x/common.c | |||
@@ -354,15 +354,11 @@ void clps711x_restart(char mode, const char *cmd) | |||
354 | static void clps711x_idle(void) | 354 | static void clps711x_idle(void) |
355 | { | 355 | { |
356 | clps_writel(1, HALT); | 356 | clps_writel(1, HALT); |
357 | __asm__ __volatile__( | 357 | asm("mov r0, r0"); |
358 | "mov r0, r0\n\ | 358 | asm("mov r0, r0"); |
359 | mov r0, r0"); | ||
360 | } | 359 | } |
361 | 360 | ||
362 | static int __init clps711x_idle_init(void) | 361 | void __init clps711x_init_early(void) |
363 | { | 362 | { |
364 | arm_pm_idle = clps711x_idle; | 363 | arm_pm_idle = clps711x_idle; |
365 | return 0; | ||
366 | } | 364 | } |
367 | |||
368 | arch_initcall(clps711x_idle_init); | ||
diff --git a/arch/arm/mach-clps711x/common.h b/arch/arm/mach-clps711x/common.h index f84a7292c70e..2a22f4c6cc75 100644 --- a/arch/arm/mach-clps711x/common.h +++ b/arch/arm/mach-clps711x/common.h | |||
@@ -13,3 +13,4 @@ extern void clps711x_init_irq(void); | |||
13 | extern void clps711x_timer_init(void); | 13 | extern void clps711x_timer_init(void); |
14 | extern void clps711x_handle_irq(struct pt_regs *regs); | 14 | extern void clps711x_handle_irq(struct pt_regs *regs); |
15 | extern void clps711x_restart(char mode, const char *cmd); | 15 | extern void clps711x_restart(char mode, const char *cmd); |
16 | extern void clps711x_init_early(void); | ||