diff options
author | Alexander Shiyan <shc_work@mail.ru> | 2012-07-16 14:21:45 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2012-07-17 16:24:28 -0400 |
commit | 02d7d6d2b695054687677e474f00d2f24a8be49a (patch) | |
tree | 17b086b523532c1ac1963b840adcfdcf6eca24e6 /arch/arm/mach-clps711x/p720t.c | |
parent | bd0a521e88aa7a06ae7aabaed7ae196ed4ad867a (diff) |
ARM: clps711x/p720t: Replace __initcall by .init_early call
Since we are trying to do to support multiple machines in a single kernel,
we need to eliminate the use of __initcall to be used for all machines.
Using .init_early call solves this problem.
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/mach-clps711x/p720t.c')
-rw-r--r-- | arch/arm/mach-clps711x/p720t.c | 34 |
1 files changed, 15 insertions, 19 deletions
diff --git a/arch/arm/mach-clps711x/p720t.c b/arch/arm/mach-clps711x/p720t.c index 42ee8f33eafb..f266d90b9efc 100644 --- a/arch/arm/mach-clps711x/p720t.c +++ b/arch/arm/mach-clps711x/p720t.c | |||
@@ -86,17 +86,7 @@ static void __init p720t_map_io(void) | |||
86 | iotable_init(p720t_io_desc, ARRAY_SIZE(p720t_io_desc)); | 86 | iotable_init(p720t_io_desc, ARRAY_SIZE(p720t_io_desc)); |
87 | } | 87 | } |
88 | 88 | ||
89 | MACHINE_START(P720T, "ARM-Prospector720T") | 89 | static void __init p720t_init_early(void) |
90 | /* Maintainer: ARM Ltd/Deep Blue Solutions Ltd */ | ||
91 | .atag_offset = 0x100, | ||
92 | .fixup = fixup_p720t, | ||
93 | .map_io = p720t_map_io, | ||
94 | .init_irq = clps711x_init_irq, | ||
95 | .timer = &clps711x_timer, | ||
96 | .restart = clps711x_restart, | ||
97 | MACHINE_END | ||
98 | |||
99 | static int p720t_hw_init(void) | ||
100 | { | 90 | { |
101 | /* | 91 | /* |
102 | * Power down as much as possible in case we don't | 92 | * Power down as much as possible in case we don't |
@@ -111,13 +101,19 @@ static int p720t_hw_init(void) | |||
111 | PLD_CODEC = 0; | 101 | PLD_CODEC = 0; |
112 | PLD_TCH = 0; | 102 | PLD_TCH = 0; |
113 | PLD_SPI = 0; | 103 | PLD_SPI = 0; |
114 | #ifndef CONFIG_DEBUG_LL | 104 | if (!IS_ENABLED(CONFIG_DEBUG_LL)) { |
115 | PLD_COM2 = 0; | 105 | PLD_COM2 = 0; |
116 | PLD_COM1 = 0; | 106 | PLD_COM1 = 0; |
117 | #endif | 107 | } |
118 | |||
119 | return 0; | ||
120 | } | 108 | } |
121 | 109 | ||
122 | __initcall(p720t_hw_init); | 110 | MACHINE_START(P720T, "ARM-Prospector720T") |
123 | 111 | /* Maintainer: ARM Ltd/Deep Blue Solutions Ltd */ | |
112 | .atag_offset = 0x100, | ||
113 | .fixup = fixup_p720t, | ||
114 | .init_early = p720t_init_early, | ||
115 | .map_io = p720t_map_io, | ||
116 | .init_irq = clps711x_init_irq, | ||
117 | .timer = &clps711x_timer, | ||
118 | .restart = clps711x_restart, | ||
119 | MACHINE_END | ||