aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2005-06-16 16:37:40 -0400
committerRalf Baechle <ralf@linux-mips.org>2005-10-29 14:31:24 -0400
commit778220f7c4a3357f7464a45044fd4937126ba6c5 (patch)
treeb392f0171f06609d3dabe2f12a4a2eb7373f54ed /drivers
parenta76f9fe122e0ba6ff95d3a4daa854e761f8a6a76 (diff)
Fix function types to ones appropriate for initcalls.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/tc/tc.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/tc/tc.c b/drivers/tc/tc.c
index 2613c5135c09..d742c3a90b23 100644
--- a/drivers/tc/tc.c
+++ b/drivers/tc/tc.c
@@ -8,7 +8,7 @@
8 * for more details. 8 * for more details.
9 * 9 *
10 * Copyright (c) Harald Koerfgen, 1998 10 * Copyright (c) Harald Koerfgen, 1998
11 * Copyright (c) 2001, 2003 Maciej W. Rozycki 11 * Copyright (c) 2001, 2003, 2005 Maciej W. Rozycki
12 */ 12 */
13#include <linux/string.h> 13#include <linux/string.h>
14#include <linux/init.h> 14#include <linux/init.h>
@@ -177,7 +177,7 @@ static void __init tc_probe(unsigned long startaddr, unsigned long size,
177/* 177/*
178 * the main entry 178 * the main entry
179 */ 179 */
180void __init tc_init(void) 180static int __init tc_init(void)
181{ 181{
182 int tc_clock; 182 int tc_clock;
183 int i; 183 int i;
@@ -185,7 +185,7 @@ void __init tc_init(void)
185 unsigned long slot_size; 185 unsigned long slot_size;
186 186
187 if (!TURBOCHANNEL) 187 if (!TURBOCHANNEL)
188 return; 188 return 0;
189 189
190 for (i = 0; i < MAX_SLOT; i++) { 190 for (i = 0; i < MAX_SLOT; i++) {
191 tc_bus[i].base_addr = 0; 191 tc_bus[i].base_addr = 0;
@@ -246,6 +246,8 @@ void __init tc_init(void)
246 } 246 }
247#endif 247#endif
248 } 248 }
249
250 return 0;
249} 251}
250 252
251subsys_initcall(tc_init); 253subsys_initcall(tc_init);