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/ddb5xxx | |
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/ddb5xxx')
-rw-r--r-- | arch/mips/ddb5xxx/ddb5074/setup.c | 4 | ||||
-rw-r--r-- | arch/mips/ddb5xxx/ddb5476/setup.c | 4 | ||||
-rw-r--r-- | arch/mips/ddb5xxx/ddb5477/setup.c | 6 |
3 files changed, 3 insertions, 11 deletions
diff --git a/arch/mips/ddb5xxx/ddb5074/setup.c b/arch/mips/ddb5xxx/ddb5074/setup.c index a73a5978d550..11535be265b9 100644 --- a/arch/mips/ddb5xxx/ddb5074/setup.c +++ b/arch/mips/ddb5xxx/ddb5074/setup.c | |||
@@ -85,7 +85,7 @@ static void __init ddb_time_init(void) | |||
85 | 85 | ||
86 | 86 | ||
87 | 87 | ||
88 | static void __init ddb5074_setup(void) | 88 | void __init plat_setup(void) |
89 | { | 89 | { |
90 | set_io_port_base(NILE4_PCI_IO_BASE); | 90 | set_io_port_base(NILE4_PCI_IO_BASE); |
91 | isa_slot_offset = NILE4_PCI_MEM_BASE; | 91 | isa_slot_offset = NILE4_PCI_MEM_BASE; |
@@ -106,8 +106,6 @@ static void __init ddb5074_setup(void) | |||
106 | panic_timeout = 180; | 106 | panic_timeout = 180; |
107 | } | 107 | } |
108 | 108 | ||
109 | early_initcall(ddb5074_setup); | ||
110 | |||
111 | #define USE_NILE4_SERIAL 0 | 109 | #define USE_NILE4_SERIAL 0 |
112 | 110 | ||
113 | #if USE_NILE4_SERIAL | 111 | #if USE_NILE4_SERIAL |
diff --git a/arch/mips/ddb5xxx/ddb5476/setup.c b/arch/mips/ddb5xxx/ddb5476/setup.c index 71531f8146ea..f4e480a74edf 100644 --- a/arch/mips/ddb5xxx/ddb5476/setup.c +++ b/arch/mips/ddb5xxx/ddb5476/setup.c | |||
@@ -124,7 +124,7 @@ static struct { | |||
124 | 124 | ||
125 | static void ddb5476_board_init(void); | 125 | static void ddb5476_board_init(void); |
126 | 126 | ||
127 | static void __init ddb5476_setup(void) | 127 | void __init plat_setup(void) |
128 | { | 128 | { |
129 | set_io_port_base(KSEG1ADDR(DDB_PCI_IO_BASE)); | 129 | set_io_port_base(KSEG1ADDR(DDB_PCI_IO_BASE)); |
130 | 130 | ||
@@ -158,8 +158,6 @@ static void __init ddb5476_setup(void) | |||
158 | ddb5476_board_init(); | 158 | ddb5476_board_init(); |
159 | } | 159 | } |
160 | 160 | ||
161 | early_initcall(ddb5476_setup); | ||
162 | |||
163 | /* | 161 | /* |
164 | * We don't trust bios. We essentially does hardware re-initialization | 162 | * We don't trust bios. We essentially does hardware re-initialization |
165 | * as complete as possible, as far as we know we can safely do. | 163 | * as complete as possible, as far as we know we can safely do. |
diff --git a/arch/mips/ddb5xxx/ddb5477/setup.c b/arch/mips/ddb5xxx/ddb5477/setup.c index d62f5a789b05..81163353c4a8 100644 --- a/arch/mips/ddb5xxx/ddb5477/setup.c +++ b/arch/mips/ddb5xxx/ddb5477/setup.c | |||
@@ -170,7 +170,7 @@ static void ddb5477_board_init(void); | |||
170 | extern struct pci_controller ddb5477_ext_controller; | 170 | extern struct pci_controller ddb5477_ext_controller; |
171 | extern struct pci_controller ddb5477_io_controller; | 171 | extern struct pci_controller ddb5477_io_controller; |
172 | 172 | ||
173 | static int ddb5477_setup(void) | 173 | void __init plat_setup(void) |
174 | { | 174 | { |
175 | /* initialize board - we don't trust the loader */ | 175 | /* initialize board - we don't trust the loader */ |
176 | ddb5477_board_init(); | 176 | ddb5477_board_init(); |
@@ -193,12 +193,8 @@ static int ddb5477_setup(void) | |||
193 | 193 | ||
194 | register_pci_controller (&ddb5477_ext_controller); | 194 | register_pci_controller (&ddb5477_ext_controller); |
195 | register_pci_controller (&ddb5477_io_controller); | 195 | register_pci_controller (&ddb5477_io_controller); |
196 | |||
197 | return 0; | ||
198 | } | 196 | } |
199 | 197 | ||
200 | early_initcall(ddb5477_setup); | ||
201 | |||
202 | static void __init ddb5477_board_init(void) | 198 | static void __init ddb5477_board_init(void) |
203 | { | 199 | { |
204 | /* ----------- setup PDARs ------------ */ | 200 | /* ----------- setup PDARs ------------ */ |