diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2005-06-21 09:56:30 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2005-10-29 14:30:18 -0400 |
commit | c83cfc9c9477d0bc0e0a1ba29dfc58e0d42b2faf (patch) | |
tree | 86c613b44ae25af1808b81dde2a4dc0274647194 /arch/mips/mips-boards | |
parent | 8c93650890a33318263880dec36603a6d5749b7e (diff) |
Get rid of early_init. There's more need to make this form of
initialization actually useful and as is certainly unmergable with
upstream.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/mips-boards')
-rw-r--r-- | arch/mips/mips-boards/atlas/atlas_setup.c | 8 | ||||
-rw-r--r-- | arch/mips/mips-boards/generic/pci.c | 8 | ||||
-rw-r--r-- | arch/mips/mips-boards/malta/malta_setup.c | 8 | ||||
-rw-r--r-- | arch/mips/mips-boards/sead/sead_setup.c | 2 |
4 files changed, 8 insertions, 18 deletions
diff --git a/arch/mips/mips-boards/atlas/atlas_setup.c b/arch/mips/mips-boards/atlas/atlas_setup.c index 0a1dd9bbc02e..625843b30bed 100644 --- a/arch/mips/mips-boards/atlas/atlas_setup.c +++ b/arch/mips/mips-boards/atlas/atlas_setup.c | |||
@@ -50,8 +50,10 @@ const char *get_system_type(void) | |||
50 | return "MIPS Atlas"; | 50 | return "MIPS Atlas"; |
51 | } | 51 | } |
52 | 52 | ||
53 | static int __init atlas_setup(void) | 53 | void __init plat_setup(void) |
54 | { | 54 | { |
55 | mips_pcibios_init(); | ||
56 | |||
55 | ioport_resource.end = 0x7fffffff; | 57 | ioport_resource.end = 0x7fffffff; |
56 | 58 | ||
57 | serial_init (); | 59 | serial_init (); |
@@ -64,12 +66,8 @@ static int __init atlas_setup(void) | |||
64 | board_time_init = mips_time_init; | 66 | board_time_init = mips_time_init; |
65 | board_timer_setup = mips_timer_setup; | 67 | board_timer_setup = mips_timer_setup; |
66 | rtc_get_time = mips_rtc_get_time; | 68 | rtc_get_time = mips_rtc_get_time; |
67 | |||
68 | return 0; | ||
69 | } | 69 | } |
70 | 70 | ||
71 | early_initcall(atlas_setup); | ||
72 | |||
73 | static void __init serial_init(void) | 71 | static void __init serial_init(void) |
74 | { | 72 | { |
75 | #ifdef CONFIG_SERIAL_8250 | 73 | #ifdef CONFIG_SERIAL_8250 |
diff --git a/arch/mips/mips-boards/generic/pci.c b/arch/mips/mips-boards/generic/pci.c index 92c34bda02ae..5dadedffba13 100644 --- a/arch/mips/mips-boards/generic/pci.c +++ b/arch/mips/mips-boards/generic/pci.c | |||
@@ -109,7 +109,7 @@ static struct pci_controller msc_controller = { | |||
109 | .io_offset = 0x00000000UL, | 109 | .io_offset = 0x00000000UL, |
110 | }; | 110 | }; |
111 | 111 | ||
112 | static int __init pcibios_init(void) | 112 | void __init mips_pcibios_init(void) |
113 | { | 113 | { |
114 | struct pci_controller *controller; | 114 | struct pci_controller *controller; |
115 | 115 | ||
@@ -150,14 +150,10 @@ static int __init pcibios_init(void) | |||
150 | controller = &msc_controller; | 150 | controller = &msc_controller; |
151 | break; | 151 | break; |
152 | default: | 152 | default: |
153 | return 1; | 153 | return; |
154 | } | 154 | } |
155 | 155 | ||
156 | ioport_resource.end = controller->io_resource->end; | 156 | ioport_resource.end = controller->io_resource->end; |
157 | 157 | ||
158 | register_pci_controller (controller); | 158 | register_pci_controller (controller); |
159 | |||
160 | return 0; | ||
161 | } | 159 | } |
162 | |||
163 | early_initcall(pcibios_init); | ||
diff --git a/arch/mips/mips-boards/malta/malta_setup.c b/arch/mips/mips-boards/malta/malta_setup.c index df6db6419ae9..2209e8a9de34 100644 --- a/arch/mips/mips-boards/malta/malta_setup.c +++ b/arch/mips/mips-boards/malta/malta_setup.c | |||
@@ -111,10 +111,12 @@ void __init fd_activate(void) | |||
111 | } | 111 | } |
112 | #endif | 112 | #endif |
113 | 113 | ||
114 | static int __init malta_setup(void) | 114 | void __init plat_setup(void) |
115 | { | 115 | { |
116 | unsigned int i; | 116 | unsigned int i; |
117 | 117 | ||
118 | mips_pcibios_init(); | ||
119 | |||
118 | /* Request I/O space for devices used on the Malta board. */ | 120 | /* Request I/O space for devices used on the Malta board. */ |
119 | for (i = 0; i < ARRAY_SIZE(standard_io_resources); i++) | 121 | for (i = 0; i < ARRAY_SIZE(standard_io_resources); i++) |
120 | request_resource(&ioport_resource, standard_io_resources+i); | 122 | request_resource(&ioport_resource, standard_io_resources+i); |
@@ -224,8 +226,4 @@ static int __init malta_setup(void) | |||
224 | board_time_init = mips_time_init; | 226 | board_time_init = mips_time_init; |
225 | board_timer_setup = mips_timer_setup; | 227 | board_timer_setup = mips_timer_setup; |
226 | rtc_get_time = mips_rtc_get_time; | 228 | rtc_get_time = mips_rtc_get_time; |
227 | |||
228 | return 0; | ||
229 | } | 229 | } |
230 | |||
231 | early_initcall(malta_setup); | ||
diff --git a/arch/mips/mips-boards/sead/sead_setup.c b/arch/mips/mips-boards/sead/sead_setup.c index 29892b88a4fc..de90bec5505e 100644 --- a/arch/mips/mips-boards/sead/sead_setup.c +++ b/arch/mips/mips-boards/sead/sead_setup.c | |||
@@ -57,8 +57,6 @@ static void __init sead_setup(void) | |||
57 | mips_reboot_setup(); | 57 | mips_reboot_setup(); |
58 | } | 58 | } |
59 | 59 | ||
60 | early_initcall(sead_setup); | ||
61 | |||
62 | static void __init serial_init(void) | 60 | static void __init serial_init(void) |
63 | { | 61 | { |
64 | #ifdef CONFIG_SERIAL_8250 | 62 | #ifdef CONFIG_SERIAL_8250 |